public class DoubleSpectralClustering extends Object implements SimilarityClusterer<SpectralIndexedClusters>
Modifier and Type | Field and Description |
---|---|
protected SpectralClusteringConf<double[]> |
conf |
Modifier | Constructor and Description |
---|---|
protected |
DoubleSpectralClustering() |
|
DoubleSpectralClustering(SpectralClusteringConf<double[]> conf) |
Modifier and Type | Method and Description |
---|---|
SpectralIndexedClusters |
cluster(SparseMatrix data) |
SpectralIndexedClusters |
clusterSimilarity(SparseMatrix sim) |
protected SparseMatrix |
laplacian(SparseMatrix data) |
protected Eigenvalues |
laplacianEigenVectors(SparseMatrix laplacian) |
int[][] |
performClustering(SparseMatrix data) |
protected Eigenvalues |
spectralCluster(SparseMatrix data) |
String |
toString() |
protected SpectralClusteringConf<double[]> conf
public DoubleSpectralClustering(SpectralClusteringConf<double[]> conf)
conf
- cluster the eigen vectorsprotected DoubleSpectralClustering()
public SpectralIndexedClusters clusterSimilarity(SparseMatrix sim)
clusterSimilarity
in interface SimilarityClusterer<SpectralIndexedClusters>
sim
- the similarity matrixpublic SpectralIndexedClusters cluster(SparseMatrix data)
cluster
in interface DataClusterer<SparseMatrix,SpectralIndexedClusters>
data
- the data to be clusteredprotected Eigenvalues spectralCluster(SparseMatrix data)
protected Eigenvalues laplacianEigenVectors(SparseMatrix laplacian)
protected SparseMatrix laplacian(SparseMatrix data)
public int[][] performClustering(SparseMatrix data)
performClustering
in interface Clusterer<SparseMatrix>