Package moa.clusterers.streamkm
Class Point
- java.lang.Object
-
- moa.clusterers.streamkm.Point
-
public class Point extends Object
- Author:
- Marcel R. Ackermann, Christiane Lammersen, Marcus Maertens, Christoph Raupach, Christian Sohler, Kamil Swierkot
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Point
clone()
double
costOfPoint(int k, Point[] centres)
Computes the cost of this point with the given array of centres centres[] (of size k)double
costOfPointToCenter(Point centre)
Computes the cost of this point with centre centreint
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)Cluster
toCluster(double radius)
-
-
-
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
-
-