/
Distributions__To_Strings___.html
54 lines (53 loc) · 2.49 KB
/
Distributions__To_Strings___.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<html><head><meta name="robots" content="index,follow">
<title>Distributions: To Strings...</title></head><body bgcolor="#FFFFFF">
<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>
Distributions: To Strings...
</b></font></table></table>
<p>
A command to create a <a href="Strings.html">Strings</a> object from every selected <a href="Distributions.html">Distributions</a> object.</p>
<h3>
Settings</h3>
<dl>
<dt>
<b>Column number</b>
<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.
<dt>
<b>Number of strings</b>
<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.
</dl>
<h3>
Behaviour</h3>
<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>
<p>
<i><b>Example</i></b>. Suppose we have the following <b>Distributions</b>:</p>
<code>
File type = "ooTextFile"<br></code>
<code>
Object class = "Distributions"<br></code>
<code>
2 (number of columns)<br></code>
<code>
"English" "French" (column labels)<br></code>
<code>
3 (number of rows)<br></code>
<code>
"the" 108 1.5<br></code>
<code>
"a" 58.1 33<br></code>
<code>
"pour" 0.7 15.5<br></code>
<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 "the", 348 occurrences of "a", and 4 occurrences of "pour". If you had set <i>Column</i> to 2 ("French"), you would have gotten about 30 times "the", 660 times "a", and 310 times "pour". The actual numbers will vary because the choice of a string will not depend on previous choices.</p>
<h3>Links to this page</h3>
<ul>
<li><a href="OT_learning_7__Learning_from_overt_forms.html">OT learning 7. Learning from overt forms</a>
</ul>
<hr>
<address>
<p>© ppgb, October 22, 1997</p>
</address>
</body>
</html>