specc
fun specc(data: Array<DoubleArray>, k: Int, sigma: Double, l: Int = 0, maxIter: Int = 100): CentroidClustering<DoubleArray, DoubleArray>(source)
Spectral clustering with Nystrom approximation.
Parameters
data
the dataset for clustering.
k
the number of clusters.
l
the number of random samples for Nystrom approximation.
sigma
the smooth/width parameter of Gaussian kernel, which is a somewhat sensitive parameter. To search for the best setting, one may pick the value that gives the tightest clusters (smallest distortion, see { @link #distortion()}) in feature space.
max Iter
the maximum number of iterations for k-means.