public class UnitKMeans extends KMeans
KMeans.InitType
Modifier and Type | Field and Description |
---|---|
private static Hashtable<double[],GeneralUnitPNode> |
unitLookupTable |
Constructor and Description |
---|
UnitKMeans(int k,
GeneralUnitPNode[][] units) |
UnitKMeans(int k,
GeneralUnitPNode[][] units,
KMeans.InitType initialisation) |
Modifier and Type | Method and Description |
---|---|
static double[][] |
convert(GeneralUnitPNode[][] units)
Convert a GeneralUnitPNode[][] to a simple doule[][].
|
ClusterNode[] |
getClusterNodes(int level)
Returns the ClusterNodes for the given level.
|
getClusterCentroids, getClusters, getClusterVariances, getData, getDifferences, getMaxValues, getMinMaxNormalisedClusterCentroids, getMinMaxNormalisedClusterCentroidsWithin, getMinValues, getOccurrenceLabels, getSSE, getSSEs, printCentroids, printCentroidsShort, printClusterIndices, setClusterCentroids, train, train
private static Hashtable<double[],GeneralUnitPNode> unitLookupTable
public UnitKMeans(int k, GeneralUnitPNode[][] units)
public UnitKMeans(int k, GeneralUnitPNode[][] units, KMeans.InitType initialisation)
public static double[][] convert(GeneralUnitPNode[][] units)
units
- units to convert to.public ClusterNode[] getClusterNodes(int level)