public class SingularValueDecompositionLibC extends Object implements MatrixFactorization
| Constructor and Description |
|---|
SingularValueDecompositionLibC() |
| Modifier and Type | Method and Description |
|---|---|
Matrix |
classFeatures()
Returns the latent class by feature
Matrix. |
Matrix |
dataClasses()
Returns the data point by latent class
Matrix. |
void |
factorize(MatrixFile mFile,
int dimensions)
Factorizes the
MatrixFile m. |
void |
factorize(SparseMatrix matrix,
int dimensions)
Factorizes the
SparseMatrix m. |
MatrixBuilder |
getBuilder()
Returns a
MatrixBuilder that is optimized for MatrixFiles
that will be processed by this MatrixFactorization algorithm. |
double[] |
singularValues()
Returns a double array of the singular values.
|
public void factorize(SparseMatrix matrix, int dimensions)
SparseMatrix m. If m is of size
MxN, this will generate two matrices: one of size MxnumDimensions
and one of size numDimensionsxN. This method must be called
before calling dataClasses and classFeatures.factorize in interface MatrixFactorizationpublic void factorize(MatrixFile mFile, int dimensions)
MatrixFile m. If m is of size
MxN, this will generate two matrices: one of size MxnumDimensions
and one of size numDimensionsxN. This method must be called
before calling dataClasses and classFeatures.factorize in interface MatrixFactorizationpublic Matrix dataClasses()
Matrix. This matrix
represents the degree by which each data point can be explained by the
discovered latent classes. Actual interpretations of the latent classes
depends on the actual algorithm used. This Matrix can be used as
a reduced representation of the data points themselves.dataClasses in interface MatrixFactorizationpublic Matrix classFeatures()
Matrix. This matrix
represents the degree by which each feature affects each latent class.
Actual interpretations of this interaction depends on the actual
algorithm used. This Matrix can be used as a reduced
representation of the features.classFeatures in interface MatrixFactorizationpublic double[] singularValues()
public MatrixBuilder getBuilder()
MatrixBuilder that is optimized for MatrixFiles
that will be processed by this MatrixFactorization algorithm.getBuilder in interface MatrixFactorizationCopyright © 2012. All Rights Reserved.