| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>Eigen & Matrix: To Matrix (project columns)...</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 |
Eigen & Matrix: To Matrix (project columns)... |
| 13 |
</b></font></table></table> |
| 14 |
<p>A command to project the columns of the <a href="Matrix.html">Matrix</a> object onto the eigenspace of the <a href="Eigen.html">Eigen</a> object.</p> |
| 15 |
<h2>Setting</h2> |
| 16 |
<dl> |
| 17 |
<dt><b>Number of dimensions</b> |
| 18 |
<dd>defines the dimension, i.e., the number of rows, of the resulting Matrix object.</dd> |
| 19 |
</dl> |
| 20 |
<h2>Algorithm</h2> |
| 21 |
<p>Project each column of the Matrix on the coordinate system given by the eigenvectors of the Eigen object. This can be done as follows:</p> |
| 22 |
<table width="100%" style="white-space:pre-wrap"><tr><td align=middle><i>y</i><sub><i>ij</i></sub> = Σ<sub><i>k</i>=1..<i>dimension</i></sub> <i>e</i><sub>ik</sub> <i>z</i><sub><i>kj</i></sub>, where</table> |
| 23 |
<p><i>y</i><sub><i>ij</i></sub> is the <i>j</i>-th element of the <i>i</i>-th row of the result, <i>e</i><sub><i>ik</i></sub> is the <i>k</i>-th element of the <i>i</i>-th eigenvector, <i>z</i><sub><i>kj</i></sub> is the <i>k</i>-th element of the <i>j</i>-th column of the selected Matrix object, and <i>dimension</i> is the number of elements in an eigenvector.</p> |
| 24 |
<hr> |
| 25 |
<address> |
| 26 |
<p>© djmw 20160223</p> |
| 27 |
</address> |
| 28 |
</body> |
| 29 |
</html> |