@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 HierarchicalIntKMeans extends Object implements SpatialClusterer<HierarchicalIntKMeansResult,int[]>
HierarchicalIntKMeans
) is a simple
hierarchical version of IntKMeans. The algorithm recursively appliesConstructor and Description |
---|
HierarchicalIntKMeans(int M,
int K,
int depth)
Construct a new
HierarchicalIntKMeans with the given parameters. |
HierarchicalIntKMeans(KMeansConfiguration<IntNearestNeighbours,int[]> config,
int M,
int K,
int depth)
Construct a new
HierarchicalIntKMeans with the given parameters. |
Modifier and Type | Method and Description |
---|---|
HierarchicalIntKMeansResult |
cluster(DataSource<int[]> data)
Perform clustering with data from a data source.
|
HierarchicalIntKMeansResult |
cluster(int[][] data)
Perform clustering on the given data.
|
int[][] |
performClustering(int[][] data) |
public HierarchicalIntKMeans(KMeansConfiguration<IntNearestNeighbours,int[]> config, int M, int K, int depth)
HierarchicalIntKMeans
with the given parameters.config
- configuration for the underlying kmeans clustering.M
- Data dimensionality.K
- Number of clusters per node.depth
- Tree depth.public HierarchicalIntKMeans(int M, int K, int depth)
HierarchicalIntKMeans
with the given parameters.
Uses the default parameters of the KMeansConfiguration
.M
- Data dimensionality.K
- Number of clusters per node.depth
- Tree depth.public HierarchicalIntKMeansResult cluster(int[][] data)
SpatialClusterer
cluster
in interface SpatialClusterer<HierarchicalIntKMeansResult,int[]>
data
- the data.public int[][] performClustering(int[][] data)
performClustering
in interface Clusterer<int[][]>
public HierarchicalIntKMeansResult cluster(DataSource<int[]> data)
SpatialClusterer
DataSource
could potentially be backed by disk rather in memory.cluster
in interface SpatialClusterer<HierarchicalIntKMeansResult,int[]>
data
- the data.