| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>Distance: To ScalarProduct...</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 |
Distance: To ScalarProduct... |
| 13 |
</b></font></table></table> |
| 14 |
<p>A command that creates a <a href="ScalarProduct.html">ScalarProduct</a> for each selected <a href="Distance.html">Distance</a>.</p> |
| 15 |
<h2>Setting</h2> |
| 16 |
<dl> |
| 17 |
<dt><b>Make sum of squares equal 1.0</b> |
| 18 |
<dd>when selected, the elements in the resulting matrix part will be scaled such that the sum of all the squared elements in the matrix equals 1.0.</dd> |
| 19 |
</dl> |
| 20 |
<h2>Algorithm</h2> |
| 21 |
<p>ScalarProduct entries <i>b</i><sub><i>ij</i></sub> are created from distances <i>d</i><sub><i>ij</i></sub> bij double centering the matrix with elements –1/2 <i>d</i><sub><i>ij</i></sub><sup>2</sup>, i.e.,</p> |
| 22 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>b</i><sub><i>ij</i></sub>= –1/2(<i>d</i><sub><i>ij</i></sub><sup>2</sup> – <i>d</i><sub><i></i>·j</sub><sup>2</sup> – <i>d</i><sub><i>i</i>·</sub><sup>2</sup> + <i>d</i><sub><i></i>··</sub><sup>2</sup>),</table> |
| 23 |
<p>where the dot (·) means averaging over that dimension.</p> |
| 24 |
<hr> |
| 25 |
<address> |
| 26 |
<p>© djmw 20040407</p> |
| 27 |
</address> |
| 28 |
</body> |
| 29 |
</html> |