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