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[][] sums,
int[] counts,
int[] membership)
Given k cluster centroids, this method assigns data to nearest centroids.
|
public BBDTree(double[][] data)
public double clustering(double[][] centroids, double[][] sums, int[] counts, int[] membership)