SpectralClustering: Conducts spectral clustering algorithm.

Description Usage Arguments Value References Examples

View source: R/clust_functions.R

Description

This function implements spectral clustering algorithm.

It conducts k-means on top k left singular vectors of the data matrix.

Usage

1
SpectralClustering(data, num_clusters)

Arguments

data

matrix. Input data matrix for clustering.

num_clusters

int. Number of clusters.

Value

A vector containing the cluster assignment after iterations.

References

T. Liu, Y. Lu, B. Zhu, H. Zhao (2021). High-dimensional Clustering via Feature Selection with Applications to Single Cell RNA-seq Data.

Examples

1
2
synthetic_data <- GenerateSyntheticData(n=10, p=10, s=5, k=2, signal_strength=1, noise_type="gaussian")
label.est <- SpectralClustering(synthetic_data$data, 2)

TerenceLiu4444/SCFS documentation built on Feb. 13, 2022, 9:18 a.m.