public class BBDTree
extends java.lang.Object
The structure works as follows:
Constructor and Description |
---|
BBDTree(double[][] data)
Constructs a tree out of the given n data data living in R^d.
|
Modifier and Type | Method and Description |
---|---|
double |
clustering(double[][] centroids,
double[][] sum,
int[] size,
int[] y)
Given k cluster centroids, this method assigns data to nearest centroids.
|
public BBDTree(double[][] data)
public double clustering(double[][] centroids, double[][] sum, int[] size, int[] y)
centroids
- the current centroids of clusters.sum
- the workspace storing the sum of data in each cluster.size
- the number of samples in each cluster.y
- the class labels.