| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>SVD: Get minimum number of singular values...</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 | SVD: Get minimum number of singular values... |
| 13 | </b></font></table></table> |
| 14 | <p>A command to get the minimum number of singular values (s.v.'s) whose sum, divided by the sum of all singular values, is smaller than the given fraction.</p> |
| 15 | <h2>Examples</h2> |
| 16 | <p>Given an SVD with four s.v's 10.0, 6.0, 3.0 and 1.0. The sum of the s.v's is 20.0.</p> |
| 17 | <code> Get minimum number of singular values: 0.5<br></code> |
| 18 | <dl> |
| 19 | <dd>The returned value would be 1. The first s.v. divided by the sum is 0.5 (= 10.0 / 20.0). For any fraction lower than 0.5 the query would also return 1, because the first s.v. already covers half of the total sum.</dd> |
| 20 | </dl> |
| 21 | <code> Get minimum number of singular values: 0.8<br></code> |
| 22 | <dl> |
| 23 | <dd>The returned value would be 2. The sum of first two s.v.'s divided by the sum is 0.8 (= (10.0 + 6.0) / 20.0). For any fraction between 0.5 and 0.8 the query would also return 2.</dd> |
| 24 | </dl> |
| 25 | <code> Get minimum number of singular values: 0.95<br></code> |
| 26 | <dl> |
| 27 | <dd>The returned value would be 3. The sum of first three s.v.'s divided by the sum is 0.95 (= (10.0 + 6.0 + 3.0) / 20.0). For any fraction between 0.8 and 0.95 the query would also return 3.</dd> |
| 28 | </dl> |
| 29 | <code> Get minimum number of singular values: 0.96<br></code> |
| 30 | <dl> |
| 31 | <dd>The returned value would be 4.</dd> |
| 32 | </dl> |
| 33 | <code> Get minimum number of singular values: 0.99<br></code> |
| 34 | <dl> |
| 35 | <dd>The returned value would be 4.</dd> |
| 36 | </dl> |
| 37 | <hr> |
| 38 | <address> |
| 39 | <p>© djmw 20171214</p> |
| 40 | </address> |
| 41 | </body> |
| 42 | </html> |