|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mahout.math.SingularValueDecomposition
public class SingularValueDecomposition
| Constructor Summary | |
|---|---|
SingularValueDecomposition(Matrix arg)
Constructs and returns a new singular value decomposition object; The decomposed matrices can be retrieved via instance methods of the returned decomposition object. |
|
| Method Summary | |
|---|---|
double |
cond()
Returns the two norm condition number, which is max(S) / min(S). |
Matrix |
getS()
|
double[] |
getSingularValues()
Returns the diagonal of S, which is a one-dimensional array of singular values |
Matrix |
getU()
Returns the left singular vectors U. |
Matrix |
getV()
Returns the right singular vectors V. |
double |
norm2()
Returns the two norm, which is max(S). |
int |
rank()
Returns the effective numerical matrix rank, which is the number of nonnegligible singular values. |
String |
toString()
Returns a String with (propertyName, propertyValue) pairs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SingularValueDecomposition(Matrix arg)
arg - A rectangular matrix.| Method Detail |
|---|
public double cond()
public Matrix getS()
public double[] getSingularValues()
public Matrix getU()
public Matrix getV()
public double norm2()
public int rank()
public String toString()
rank : 3 trace : 0
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||