public class Point extends Object
Constructor and Description |
---|
Point(Instance inst,
int id) |
Point(int dimension) |
Modifier and Type | Method and 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 centre
|
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)
|
Cluster |
toCluster(double radius) |
public Point(int dimension)
public Point(Instance inst, int id)
public Cluster toCluster(double radius)
public double costOfPoint(int k, Point[] centres)
public int determineClusterCentreKMeans(int k, Point[] centres)
public double costOfPointToCenter(Point centre)
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.