| 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 “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> |
| 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> |