Debian Codegraph @

docs/manual/Distributions__To_Strings___.html

raw symbols SCIP
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>Distributions: To Strings...</title>
3 <style>
4 td { padding-left: 5pt; padding-right: 5pt; }
5 th { padding-left: 5pt; padding-right: 5pt; }
6 code { white-space: pre-wrap; }
7 dd { white-space: pre-wrap; }
8 </style>
9 </head><body bgcolor="#FFFFFF">
10
11 <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b>
12 Distributions: To Strings...
13 </b></font></table></table>
14 <p>A command to create a <a href="Strings.html">Strings</a> object from every selected <a href="Distributions.html">Distributions</a> object.</p>
15 <h2>Settings</h2>
16 <dl>
17 <dt><b>Column number</b>
18 <dd>the column (in the <b>Distributions</b> object) that contains the distribution that you are interested in. Often the <b>Distributions</b> object will only contain a single distribution, so this argument will often be 1. If the <b>Distributions</b> object contains nine distributions, specify any number between 1 and 9.</dd>
19 <dt><b>Number of strings</b>
20 <dd>the number of times a string will be drawn from the chosen distribution. This is the number of strings that the resulting <a href="Strings.html">Strings</a> object is going to contain.</dd>
21 </dl>
22 <h2>Behaviour</h2>
23 <p>Every string in the resulting <b>Strings</b> object will be a row label of the <b>Distributions</b> object. The number in each row at the specified column will be considered the relative frequency of occurrence of that row.</p>
24 <p><i><b>Example</i></b>. Suppose we have the following <b>Distributions</b>:</p>
25 <code> File type = "ooTextFile"<br></code>
26 <code> Object class = "Distributions"<br></code>
27 <code> 2 (number of columns)<br></code>
28 <code> "English" "French" (column labels)<br></code>
29 <code> 3 (number of rows)<br></code>
30 <code> "the" 108 1.5<br></code>
31 <code> "a" 58.1 33<br></code>
32 <code> "pour" 0.7 15.5<br></code>
33 <p>If you set <i>Column</i> to 1 and <i>Number of strings</i> to 1000, you will get a <a href="Strings.html">Strings</a> object with approximately 647 occurrences of &#8220;the&#8221;, 348 occurrences of &#8220;a&#8221;, and 4 occurrences of &#8220;pour&#8221;. If you had set <i>Column</i> to 2 (&#8220;French&#8221;), you would have gotten about 30 times &#8220;the&#8221;, 660 times &#8220;a&#8221;, and 310 times &#8220;pour&#8221;. The actual numbers will vary because the choice of a string will not depend on previous choices.</p>
34 <h3>Links to this page</h3>
35 <ul>
36 <li><a href="OT_learning_7__Learning_from_overt_forms.html">OT learning 7. Learning from overt forms</a>
37 </ul>
38 <hr>
39 <address>
40 <p>© ppgb 19971022</p>
41 </address>
42 </body>
43 </html>