private class GeneratorMain.AssignLabelsByDistance extends GeneratorMain.AssignPoint
Modifier and Type | Field and Description |
---|---|
private double[][] |
centers
Cluster centers.
|
Constructor and Description |
---|
AssignLabelsByDistance(ClassLabel[] labels)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private double[][] |
clusterCenters(java.util.ArrayList<GeneratorInterface> generators,
ClassLabel[] labels)
Compute the cluster centers for each cluster.
|
int |
getAssignment(int i,
double[] p)
Assign a point to a cluster.
|
newCluster
public AssignLabelsByDistance(ClassLabel[] labels)
labels
- Cluster labelsprivate double[][] clusterCenters(java.util.ArrayList<GeneratorInterface> generators, ClassLabel[] labels)
generators
- Generatorslabels
- Labels (null
if not needed)public int getAssignment(int i, double[] p)
GeneratorMain.AssignPoint
getAssignment
in class GeneratorMain.AssignPoint
i
- Cluster numberp
- PointCopyright © 2019 ELKI Development Team. License information.