speCluster: speCluster

Description Usage Arguments Value

View source: R/main.R

Description

Perform Spectral Clustering on a data matrix

Usage

1
2
speCluster(data, conMatrix, cluster.number, iter.max = 400,
  repetition = 400)

Arguments

data

A numeric data frame or matrix where columns represent variables and rows represent locations

conMatrix

Contiguity matrix.

cluster.number

The number of clusters.

iter.max

The maximum number of iterations allowed for kmeans step.

repetition

How many random sets should be chosen for as the initial centers in kmeans step.

Value

A list contains two parts: clusters: A vector of integers(from 1:cluster.number) indicating the cluster to which each point is allocated. SS: A list with two values SSW for Sum Squered Within and SSB for SumSquered Between


jsta/speCluster documentation built on Aug. 6, 2021, 3:23 p.m.