mySpectralClustering: Spectral clustering

Description Usage Arguments Value

View source: R/clustering_algorithms.R

Description

This function is a wrapper to spectralClustering in the package anocva.

Usage

1

Arguments

X

data matrix or data frame of size n x d, n observations and d features

k

number of clusters

simi

similarity measure between two vectors

Value

list of 3 components:

cluster

vector of integer between 1 and k containing the allocation of each point

centers

matrix (d x k) of the centers of each cluster

predict

function predicting to which cluster an observation belongs. The prediciton is done with the k-nearest neighbours function.


mattmail/clusterAnalysis documentation built on Nov. 4, 2019, 6:18 p.m.