Class KMeans
- java.lang.Object
-
- dev.brachtendorf.jimagehash.datastructures.KMeans
-
- Direct Known Subclasses:
KMeansPlusPlus
public class KMeans extends Object
- Author:
- Kilian
-
-
Field Summary
Fields Modifier and Type Field Description protected intkThe number of cluster the data will be partitioned into
-
Constructor Summary
Constructors Constructor Description KMeans(int clusters)Create a KMeans clusterer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterResultcluster(Hash[] hashes)ClusterResultcluster(Hash[] hashes, int maxIter)protected voidcomputeKMeans(int[] cluster, FuzzyHash[] clusterMeans, Hash[] hashes, int maxIter)protected FuzzyHash[]computeStartingClusters(Hash[] hashes)
-
-
-
Method Detail
-
cluster
public ClusterResult cluster(Hash[] hashes)
-
cluster
public ClusterResult cluster(Hash[] hashes, int maxIter)
-
-