Package ubic.basecode.math.linalg
Class SingularValueDecomposition<R,C>
- java.lang.Object
-
- ubic.basecode.math.linalg.SingularValueDecomposition<R,C>
-
public class SingularValueDecomposition<R,C> extends Object
SVD for DoubleMatrix.- Author:
- paul
-
-
Constructor Summary
Constructors Constructor Description SingularValueDecomposition(DoubleMatrix<R,C> matrix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
cond()
DoubleMatrix<Integer,Integer>
getS()
double[]
getSingularValues()
DoubleMatrix<R,Integer>
getU()
DoubleMatrix<Integer,C>
getV()
double
norm2()
int
rank()
String
toString()
-
-
-
Constructor Detail
-
SingularValueDecomposition
public SingularValueDecomposition(DoubleMatrix<R,C> matrix)
- Parameters:
matrix
-
-
-
Method Detail
-
cond
public double cond()
- Returns:
- the condition number of the matrix
- See Also:
SingularValueDecomposition.cond()
-
getS
public DoubleMatrix<Integer,Integer> getS()
- Returns:
- See Also:
SingularValueDecomposition.getS()
-
getSingularValues
public double[] getSingularValues()
- Returns:
- See Also:
SingularValueDecomposition.getSingularValues()
-
getU
public DoubleMatrix<R,Integer> getU()
- Returns:
- See Also:
SingularValueDecomposition.getU()
-
getV
public DoubleMatrix<Integer,C> getV()
- Returns:
- See Also:
SingularValueDecomposition.getV()
-
norm2
public double norm2()
- Returns:
- See Also:
SingularValueDecomposition.norm2()
-
rank
public int rank()
- Returns:
- See Also:
SingularValueDecomposition.rank()
-
-