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