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