Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

specc-class

Class "specc"


Description

The Spectral Clustering Class

Objects from the Class

Objects can be created by calls of the form new("specc", ...). or by calling the function specc.

Slots

.Data:

Object of class "vector" containing the cluster assignments

centers:

Object of class "matrix" containing the cluster centers

size:

Object of class "vector" containing the number of points in each cluster

withinss:

Object of class "vector" containing the within-cluster sum of squares for each cluster

kernelf

Object of class kernel containing the used kernel function.

Methods

centers

signature(object = "specc"): returns the cluster centers

withinss

signature(object = "specc"): returns the within-cluster sum of squares for each cluster

size

signature(object = "specc"): returns the number of points in each cluster

Author(s)

See Also

Examples

## Cluster the spirals data set.
data(spirals)

sc <- specc(spirals, centers=2)

centers(sc)
size(sc)

kernlab

Kernel-Based Machine Learning Lab

v0.9-29
GPL-2
Authors
Alexandros Karatzoglou [aut, cre], Alex Smola [aut], Kurt Hornik [aut], National ICT Australia (NICTA) [cph], Michael A. Maniscalco [ctb, cph], Choon Hui Teo [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.