- java.lang.Object
-
- org.ojalgo.data.cluster.PointDistanceCache
-
final class PointDistanceCache extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private double[][]myDistancesprivate SampleSetmySampleSetprivate NumberList<java.lang.Double>myValues
-
Constructor Summary
Constructors Constructor Description PointDistanceCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Pointcentroid(java.util.Collection<Point> cluster)Pick the centroid for this cluster (one of its current members)private doubledistance(int i, int j)(package private) doubledistance(Point point1, Point point2)Get the distance between these two points.(package private) doublegetThreshold()The distance threshold used ininitialiser(Collection)to determine when the greedy clustering algorithm should not place a point in any of the existing clusters, but rather create a new cluster.(package private) java.util.List<Point>initialiser(java.util.Collection<Point> input)Generate an initial set of centroids(package private) voidsetup(java.util.Collection<Point> input, DistanceMeasure measure)Set up the cache (configure this instance)
-
-
-
Field Detail
-
myDistances
private double[][] myDistances
-
mySampleSet
private final SampleSet mySampleSet
-
myValues
private final NumberList<java.lang.Double> myValues
-
-
Method Detail
-
distance
private double distance(int i, int j)
-
centroid
Point centroid(java.util.Collection<Point> cluster)
Pick the centroid for this cluster (one of its current members)
-
getThreshold
double getThreshold()
The distance threshold used ininitialiser(Collection)to determine when the greedy clustering algorithm should not place a point in any of the existing clusters, but rather create a new cluster.
-
initialiser
java.util.List<Point> initialiser(java.util.Collection<Point> input)
Generate an initial set of centroids
-
setup
void setup(java.util.Collection<Point> input, DistanceMeasure measure)
Set up the cache (configure this instance)
-
-