Package org.carrot2.math.matrix
Class KMeansSeedingStrategy
- java.lang.Object
-
- org.carrot2.math.matrix.KMeansSeedingStrategy
-
- All Implemented Interfaces:
SeedingStrategy
public class KMeansSeedingStrategy extends Object implements SeedingStrategy
Matrix seeding based on the k-means algorithms.
-
-
Constructor Summary
Constructors Constructor Description KMeansSeedingStrategy()
Creates the KMeansSeedingStrategy.KMeansSeedingStrategy(int maxIterations)
Creates the KMeansSeedingStrategy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
seed(org.carrot2.math.mahout.matrix.DoubleMatrix2D A, org.carrot2.math.mahout.matrix.DoubleMatrix2D U, org.carrot2.math.mahout.matrix.DoubleMatrix2D V)
Initializes values of the provided U and V matrices.String
toString()
-
-
-
Method Detail
-
seed
public void seed(org.carrot2.math.mahout.matrix.DoubleMatrix2D A, org.carrot2.math.mahout.matrix.DoubleMatrix2D U, org.carrot2.math.mahout.matrix.DoubleMatrix2D V)
Description copied from interface:SeedingStrategy
Initializes values of the provided U and V matrices. The A matrix is the input matrix to be factorized.- Specified by:
seed
in interfaceSeedingStrategy
- Parameters:
A
- matrix to be factorizedU
- left factorized matrix to be seededV
- right factorized matrix to be seeded
-
-