public class PartialSingularValueDecompositionFactory extends Object implements IMatrixFactorizationFactory
PartialSingularValueDecompositions.| 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(org.apache.mahout.math.matrix.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(org.apache.mahout.math.matrix.DoubleMatrix2D A)
IMatrixFactorizationFactoryA.factorize in interface IMatrixFactorizationFactoryA - matrix to be factorized.public void setK(int k)
k - the number of base vectorspublic int getK()