public class ClusterableFromSimple extends java.lang.Object implements Clusterable
Constructor and Description |
---|
ClusterableFromSimple(SimpleClusterable simple) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Clusterable> |
children(java.util.List<Clusterable> cluster)
Split the center of a cluster in two points along the direction
of greatest variance.
|
Clusterable |
clone() |
int |
dimension() |
long |
distanceSquare(Clusterable that) |
int |
label() |
Clusterable |
moveToCenter(java.util.List<Clusterable> cluster)
Changes the Contractable and returns it.
|
double[] |
projection(java.util.List<Clusterable> direction,
java.util.List<Clusterable> cluster) |
Clusterable |
shift(java.util.List<Clusterable> nearest_neighbors)
Must not change the Contractable.
|
public ClusterableFromSimple(SimpleClusterable simple)
public int label() throws NotImplementedException
label
in interface Clusterable
NotImplementedException
public int dimension()
dimension
in interface Clusterable
public long distanceSquare(Clusterable that)
distanceSquare
in interface Clusterable
public Clusterable shift(java.util.List<Clusterable> nearest_neighbors) throws NotImplementedException
Clusterable
shift
in interface Clusterable
NotImplementedException
public Clusterable moveToCenter(java.util.List<Clusterable> cluster)
Clusterable
moveToCenter
in interface Clusterable
public java.util.List<Clusterable> children(java.util.List<Clusterable> cluster)
Clusterable
children
in interface Clusterable
public double[] projection(java.util.List<Clusterable> direction, java.util.List<Clusterable> cluster) throws NotImplementedException
projection
in interface Clusterable
NotImplementedException
public Clusterable clone()
clone
in interface Clusterable
clone
in class java.lang.Object