SPECTRALwrapper: Wrapper to do spectral clustering

Description Usage Arguments Value Author(s) See Also Examples

View source: R/SPECTRALwrapper.R

Description

Spectral clustering using an RBF kernel. The wrapper performs multiple restarts in case true labels are provided (in order to optimise cluster assignments w.r.t. the Rand index).

Usage

1
SPECTRALwrapper(xx, k, true_labels = NULL, verbose = FALSE)

Arguments

xx

The data matrix (n x p).

k

The number of clusters.

true_labels

Vector of true cluster assignments (when provided, it is used to compute the Rand index).

verbose

Logical, when true: print progress information.

Value

model_fit

Model fit (output of mixglasso)

.

aRI

Adjusted Rand index (when true_labels is provided)

.

Author(s)

Bernd Taschler bernd.taschler@dzne.de

See Also

MCAPfit, GMMwrapper, specc, adjustedRandIndex

Examples

1
  SPECTRALwrapper(xx = matrix(rnorm(500),50), k=2)

btaschler/mcap documentation built on May 26, 2019, 1:31 a.m.