private class GeneratorMain.AssignLabelsByDensity extends GeneratorMain.AssignPoint
Modifier and Type | Field and Description |
---|---|
private GeneratorInterface |
curclus
Current cluster generator.
|
private ClassLabel[] |
labels
Cluster labels.
|
Constructor and Description |
---|
AssignLabelsByDensity(ClassLabel[] labels)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getAssignment(int i,
double[] p)
Assign a point to a cluster.
|
void |
newCluster(int i,
GeneratorInterface curclus)
Set the current cluster.
|
private ClassLabel[] labels
private GeneratorInterface curclus
public AssignLabelsByDensity(ClassLabel[] labels)
labels
- Cluster labelspublic void newCluster(int i, GeneratorInterface curclus)
GeneratorMain.AssignPoint
newCluster
in class GeneratorMain.AssignPoint
i
- Current cluster.curclus
- Generatorpublic int getAssignment(int i, double[] p)
GeneratorMain.AssignPoint
getAssignment
in class GeneratorMain.AssignPoint
i
- Cluster numberp
- PointCopyright © 2019 ELKI Development Team. License information.