Class Point


  • public class Point
    extends Object
    Author:
    Marcel R. Ackermann, Christiane Lammersen, Marcus Maertens, Christoph Raupach, Christian Sohler, Kamil Swierkot
    • Constructor Detail

      • Point

        public Point​(int dimension)
      • Point

        public Point​(Instance inst,
                     int id)
    • Method Detail

      • toCluster

        public Cluster toCluster​(double radius)
      • costOfPoint

        public double costOfPoint​(int k,
                                  Point[] centres)
        Computes the cost of this point with the given array of centres centres[] (of size k)
      • determineClusterCentreKMeans

        public int determineClusterCentreKMeans​(int k,
                                                Point[] centres)
        Computes the index of the centre nearest to this point with the given array of centres centres[] (of size k)
      • costOfPointToCenter

        public double costOfPointToCenter​(Point centre)
        Computes the cost of this point with centre centre