Class PointDistanceCache

java.lang.Object
org.ojalgo.data.cluster.PointDistanceCache

final class PointDistanceCache extends Object
  • Field Details

    • myDistances

      private double[][] myDistances
    • mySampleSet

      private final SampleSet mySampleSet
    • myValues

      private final NumberList<Double> myValues
  • Constructor Details

    • PointDistanceCache

      PointDistanceCache()
  • Method Details

    • distance

      private double distance(int i, int j)
    • centroid

      Point centroid(Collection<Point> cluster)
      Pick the centroid for this cluster (one of its current members)
    • distance

      double distance(Point point1, Point point2)
      Get the distance between these two points.
    • getThreshold

      double getThreshold()
      The distance threshold used in initialiser(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

      List<Point> initialiser(Collection<Point> input)
      Generate an initial set of centroids
    • setup

      void setup(Collection<Point> input, DistanceMeasure measure)
      Set up the cache (configure this instance)