public class ClusterSet
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ClusterSet() |
ClusterSet(java.lang.String distanceFunction) |
Modifier and Type | Method and Description |
---|---|
Cluster |
addNewClusterWithCenter(Point center) |
PointClassification |
classifyPoint(Point point) |
PointClassification |
classifyPoint(Point point,
boolean moveClusterCenter) |
void |
classifyPoints(java.util.List<Point> points) |
void |
classifyPoints(java.util.List<Point> points,
boolean moveClusterCenter) |
java.lang.String |
getAccumulation() |
Cluster |
getCluster(java.lang.String id) |
Point |
getClusterCenter(java.lang.String clusterId) |
java.lang.String |
getClusterCenterId(java.lang.String clusterId) |
int |
getClusterCount() |
java.util.List<Cluster> |
getClusters() |
double |
getDistance(Point m1,
Point m2) |
double |
getDistanceFromNearestCluster(Point point) |
java.util.List<Cluster> |
getMostPopulatedClusters(int count) |
java.util.Map<java.lang.String,java.lang.String> |
getPointDistribution() |
Pair<Cluster,java.lang.Double> |
nearestCluster(Point point) |
java.util.List<Cluster> |
removeEmptyClusters() |
void |
removePoints() |
void |
setAccumulation(java.lang.String distanceFunction) |
void |
setClusters(java.util.List<Cluster> clusters) |
void |
setPointDistribution(java.util.Map<java.lang.String,java.lang.String> pointDistribution) |
public ClusterSet()
public ClusterSet(java.lang.String distanceFunction)
public PointClassification classifyPoint(Point point)
public void classifyPoints(java.util.List<Point> points)
public void classifyPoints(java.util.List<Point> points, boolean moveClusterCenter)
public PointClassification classifyPoint(Point point, boolean moveClusterCenter)
public double getDistanceFromNearestCluster(Point point)
public java.lang.String getClusterCenterId(java.lang.String clusterId)
public Point getClusterCenter(java.lang.String clusterId)
public Cluster getCluster(java.lang.String id)
public int getClusterCount()
public void removePoints()
public java.util.List<Cluster> getMostPopulatedClusters(int count)
public java.util.List<Cluster> removeEmptyClusters()
public java.util.List<Cluster> getClusters()
public void setClusters(java.util.List<Cluster> clusters)
public java.lang.String getAccumulation()
public void setAccumulation(java.lang.String distanceFunction)
public java.util.Map<java.lang.String,java.lang.String> getPointDistribution()
public void setPointDistribution(java.util.Map<java.lang.String,java.lang.String> pointDistribution)