public class SingularValueDecomposition extends Object implements Serializable
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public SingularValueDecomposition(Matrix arg)
arg
- A rectangular matrix.public double cond()
public Matrix getS()
public double[] getSingularValues()
public Matrix getU()
public Matrix getV()
public double norm2()
public int rank()
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.