public class PartialSingularValueDecompositionFactory extends Object implements IMatrixFactorizationFactory
PartialSingularValueDecomposition
s.Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_K
The default desired number of base vectors
|
protected int |
k
The desired number of base vectors
|
Constructor and Description |
---|
PartialSingularValueDecompositionFactory()
Creates the factory that creates factorizations that compute the maximum number of
base vectors.
|
Modifier and Type | Method and Description |
---|---|
IMatrixFactorization |
factorize(DoubleMatrix2D A)
Factorizes matrix
A . |
int |
getK()
Returns the number of base vectors k .
|
void |
setK(int k)
Sets the number of base vectors k .
|
protected int k
protected static final int DEFAULT_K
public PartialSingularValueDecompositionFactory()
public IMatrixFactorization factorize(DoubleMatrix2D A)
IMatrixFactorizationFactory
A
.factorize
in interface IMatrixFactorizationFactory
A
- matrix to be factorized.public void setK(int k)
k
- the number of base vectorspublic int getK()