Class PointDistanceCache
java.lang.Object
org.ojalgo.data.cluster.PointDistanceCache
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double[][]private final SampleSetprivate final NumberList<Double> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) Pointcentroid(Collection<Point> cluster) Pick the centroid for this cluster (one of its current members)private doubledistance(int i, int j) (package private) doubleGet the distance between these two points.(package private) doubleThe 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(Collection<Point> input) Generate an initial set of centroids(package private) voidsetup(Collection<Point> input, DistanceMeasure measure) Set up the cache (configure this instance)
-
Field Details
-
myDistances
private double[][] myDistances -
mySampleSet
-
myValues
-
-
Constructor Details
-
PointDistanceCache
PointDistanceCache()
-
-
Method Details
-
distance
private double distance(int i, int j) -
centroid
Pick the centroid for this cluster (one of its current members) -
distance
-
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
Generate an initial set of centroids -
setup
Set up the cache (configure this instance)
-