public class ClusterUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
applyOptimization(OptimisationStrategy optimization,
ClusterSet clusterSet,
ClusterSetInfo clusterSetInfo,
java.util.concurrent.ExecutorService executor) |
static PointClassification |
classifyPoint(ClusterSet clusterSet,
Point point) |
static ClusterSetInfo |
classifyPoints(ClusterSet clusterSet,
java.util.List<Point> points,
java.util.concurrent.ExecutorService executorService)
Classify the set of points base on cluster centers.
|
static ClusterInfo |
computeClusterInfos(Cluster cluster,
java.lang.String distanceFunction) |
static ClusterSetInfo |
computeClusterSetInfo(ClusterSet clusterSet) |
static ClusterSetInfo |
computeClusterSetInfo(ClusterSet clusterSet,
java.util.concurrent.ExecutorService executorService) |
static org.nd4j.linalg.api.ndarray.INDArray |
computeSquareDistancesFromNearestCluster(ClusterSet clusterSet,
java.util.List<Point> points,
org.nd4j.linalg.api.ndarray.INDArray previousDxs,
java.util.concurrent.ExecutorService executorService) |
static void |
deriveClusterInfoDistanceStatistics(ClusterInfo info) |
static java.util.List<Cluster> |
getClustersWhereAverageDistanceFromCenterGreaterThan(ClusterSet clusterSet,
ClusterSetInfo info,
double maximumAverageDistance) |
static java.util.List<Cluster> |
getClustersWhereMaximumDistanceFromCenterGreaterThan(ClusterSet clusterSet,
ClusterSetInfo info,
double maximumDistance) |
static java.util.List<Cluster> |
getMostSpreadOutClusters(ClusterSet clusterSet,
ClusterSetInfo info,
int count) |
static void |
refreshClusterCenter(Cluster cluster,
ClusterInfo clusterInfo) |
static void |
refreshClustersCenters(ClusterSet clusterSet,
ClusterSetInfo clusterSetInfo,
java.util.concurrent.ExecutorService executorService) |
static void |
splitClusters(ClusterSet clusterSet,
ClusterSetInfo clusterSetInfo,
java.util.List<Cluster> clusters,
double maxDistance,
java.util.concurrent.ExecutorService executorService) |
static void |
splitClusters(ClusterSet clusterSet,
ClusterSetInfo clusterSetInfo,
java.util.List<Cluster> clusters,
java.util.concurrent.ExecutorService executorService) |
static int |
splitClustersWhereAverageDistanceFromCenterGreaterThan(ClusterSet clusterSet,
ClusterSetInfo clusterSetInfo,
double maxWithinClusterDistance,
java.util.concurrent.ExecutorService executorService) |
static int |
splitClustersWhereMaximumDistanceFromCenterGreaterThan(ClusterSet clusterSet,
ClusterSetInfo clusterSetInfo,
double maxWithinClusterDistance,
java.util.concurrent.ExecutorService executorService) |
static void |
splitMostPopulatedClusters(ClusterSet clusterSet,
ClusterSetInfo clusterSetInfo,
int count,
java.util.concurrent.ExecutorService executorService) |
static int |
splitMostSpreadOutClusters(ClusterSet clusterSet,
ClusterSetInfo clusterSetInfo,
int count,
java.util.concurrent.ExecutorService executorService) |
public static ClusterSetInfo classifyPoints(ClusterSet clusterSet, java.util.List<Point> points, java.util.concurrent.ExecutorService executorService)
public static PointClassification classifyPoint(ClusterSet clusterSet, Point point)
public static void refreshClustersCenters(ClusterSet clusterSet, ClusterSetInfo clusterSetInfo, java.util.concurrent.ExecutorService executorService)
public static void refreshClusterCenter(Cluster cluster, ClusterInfo clusterInfo)
public static void deriveClusterInfoDistanceStatistics(ClusterInfo info)
public static org.nd4j.linalg.api.ndarray.INDArray computeSquareDistancesFromNearestCluster(ClusterSet clusterSet, java.util.List<Point> points, org.nd4j.linalg.api.ndarray.INDArray previousDxs, java.util.concurrent.ExecutorService executorService)
public static ClusterSetInfo computeClusterSetInfo(ClusterSet clusterSet)
public static ClusterSetInfo computeClusterSetInfo(ClusterSet clusterSet, java.util.concurrent.ExecutorService executorService)
public static ClusterInfo computeClusterInfos(Cluster cluster, java.lang.String distanceFunction)
public static boolean applyOptimization(OptimisationStrategy optimization, ClusterSet clusterSet, ClusterSetInfo clusterSetInfo, java.util.concurrent.ExecutorService executor)
public static java.util.List<Cluster> getMostSpreadOutClusters(ClusterSet clusterSet, ClusterSetInfo info, int count)
public static java.util.List<Cluster> getClustersWhereAverageDistanceFromCenterGreaterThan(ClusterSet clusterSet, ClusterSetInfo info, double maximumAverageDistance)
public static java.util.List<Cluster> getClustersWhereMaximumDistanceFromCenterGreaterThan(ClusterSet clusterSet, ClusterSetInfo info, double maximumDistance)
public static int splitMostSpreadOutClusters(ClusterSet clusterSet, ClusterSetInfo clusterSetInfo, int count, java.util.concurrent.ExecutorService executorService)
public static int splitClustersWhereAverageDistanceFromCenterGreaterThan(ClusterSet clusterSet, ClusterSetInfo clusterSetInfo, double maxWithinClusterDistance, java.util.concurrent.ExecutorService executorService)
public static int splitClustersWhereMaximumDistanceFromCenterGreaterThan(ClusterSet clusterSet, ClusterSetInfo clusterSetInfo, double maxWithinClusterDistance, java.util.concurrent.ExecutorService executorService)
public static void splitMostPopulatedClusters(ClusterSet clusterSet, ClusterSetInfo clusterSetInfo, int count, java.util.concurrent.ExecutorService executorService)
public static void splitClusters(ClusterSet clusterSet, ClusterSetInfo clusterSetInfo, java.util.List<Cluster> clusters, double maxDistance, java.util.concurrent.ExecutorService executorService)
public static void splitClusters(ClusterSet clusterSet, ClusterSetInfo clusterSetInfo, java.util.List<Cluster> clusters, java.util.concurrent.ExecutorService executorService)