org.ddogleg.clustering.gmm
Class SeedFromKMeans_F64
- java.lang.Object
-
- org.ddogleg.clustering.gmm.SeedFromKMeans_F64
-
- All Implemented Interfaces:
- InitializeGmm_F64
public class SeedFromKMeans_F64 extends java.lang.Object implements InitializeGmm_F64
Initializes the mixture models by applying K-Means first. The mean will be the center of the clusters, variance computed from its members, and weight based on the total number of points assigned.
-
-
Constructor Summary
Constructors Constructor and Description SeedFromKMeans_F64(StandardKMeans_F64 kmeans)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidinit(int pointDimension, long randomSeed)Initializes internal data structures.voidselectSeeds(java.util.List<double[]> points, java.util.List<GaussianGmm_F64> seeds)voidsetVerbose(boolean verbose)Turn on verbose output to standard out
-
-
-
Constructor Detail
-
SeedFromKMeans_F64
public SeedFromKMeans_F64(StandardKMeans_F64 kmeans)
-
-
Method Detail
-
init
public void init(int pointDimension, long randomSeed)Description copied from interface:InitializeGmm_F64Initializes internal data structures. Must be called first.- Specified by:
initin interfaceInitializeGmm_F64- Parameters:
pointDimension- Number of degrees of freedom in each point.randomSeed- Seed for any random number generators used internally.
-
selectSeeds
public void selectSeeds(java.util.List<double[]> points, java.util.List<GaussianGmm_F64> seeds)- Specified by:
selectSeedsin interfaceInitializeGmm_F64- Parameters:
points- (input) Set of points which is to be clustered.seeds- (output) List containing storage for the initial Gaussians.
-
setVerbose
public void setVerbose(boolean verbose)
Description copied from interface:InitializeGmm_F64Turn on verbose output to standard out- Specified by:
setVerbosein interfaceInitializeGmm_F64
-
-
DataMelt 3.0 © DataMelt by jWork.ORG