@Reference(type=Inproceedings, author={"David. Nist\'er","Henrik. Stew\'enius"}, title="Scalable Recognition with a Vocabulary Tree", year="2006", booktitle="CVPR", pages={"2161","","2168"}, customData={"Date-Added","2010-11-12 09:33:18 +0000","Date-Modified","2010-11-22 15:11:22 +0000"}) public class HierarchicalDoubleKMeans extends Object implements SpatialClusterer<HierarchicalDoubleKMeansResult,double[]>
HierarchicalDoubleKMeans
) is a simple
hierarchical version of DoubleKMeans. The algorithm recursively appliesConstructor and Description |
---|
HierarchicalDoubleKMeans(int M,
int K,
int depth)
Construct a new
HierarchicalDoubleKMeans with the given parameters. |
HierarchicalDoubleKMeans(KMeansConfiguration<DoubleNearestNeighbours,double[]> config,
int M,
int K,
int depth)
Construct a new
HierarchicalDoubleKMeans with the given parameters. |
Modifier and Type | Method and Description |
---|---|
HierarchicalDoubleKMeansResult |
cluster(DataSource<double[]> data)
Perform clustering with data from a data source.
|
HierarchicalDoubleKMeansResult |
cluster(double[][] data)
Perform clustering on the given data.
|
int[][] |
performClustering(double[][] data) |
public HierarchicalDoubleKMeans(KMeansConfiguration<DoubleNearestNeighbours,double[]> config, int M, int K, int depth)
HierarchicalDoubleKMeans
with the given parameters.config
- configuration for the underlying kmeans clustering.M
- Data dimensionality.K
- Number of clusters per node.depth
- Tree depth.public HierarchicalDoubleKMeans(int M, int K, int depth)
HierarchicalDoubleKMeans
with the given parameters.
Uses the default parameters of the KMeansConfiguration
.M
- Data dimensionality.K
- Number of clusters per node.depth
- Tree depth.public HierarchicalDoubleKMeansResult cluster(double[][] data)
SpatialClusterer
cluster
in interface SpatialClusterer<HierarchicalDoubleKMeansResult,double[]>
data
- the data.public int[][] performClustering(double[][] data)
performClustering
in interface Clusterer<double[][]>
public HierarchicalDoubleKMeansResult cluster(DataSource<double[]> data)
SpatialClusterer
DataSource
could potentially be backed by disk rather in memory.cluster
in interface SpatialClusterer<HierarchicalDoubleKMeansResult,double[]>
data
- the data.