public class SVDbyMR3 extends Object implements SVDDecomposition
Constructor and Description |
---|
SVDbyMR3(Matrix A,
boolean doUV)
Creates a singular value decomposition for a matrix A.
|
Modifier and Type | Method and Description |
---|---|
DiagonalMatrix |
D()
Get the D matrix as in SVD decomposition.
|
double[] |
getSingularValues()
Get the normalized, hence positive, singular values.
|
Matrix |
U()
Get the U matrix as in SVD decomposition.
|
Matrix |
Ut()
Get the transpose of U, i.e.,
U().t() . |
Matrix |
V()
Get the V matrix as in SVD decomposition.
|
Matrix |
Vt() |
public SVDbyMR3(Matrix A, boolean doUV)
A
- the matrix AdoUV
- true
if singular vectors are requiredpublic DiagonalMatrix D()
SVDDecomposition
D
in interface SVDDecomposition
public double[] getSingularValues()
SVDDecomposition
getSingularValues
in interface SVDDecomposition
public Matrix U()
SVDDecomposition
U
in interface SVDDecomposition
public Matrix V()
SVDDecomposition
V
in interface SVDDecomposition
public Matrix Vt()
public Matrix Ut()
SVDDecomposition
U().t()
.Ut
in interface SVDDecomposition
U().t()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.