Learn R Programming

scregclust (version 0.2.0)

kmeanspp_init: Determine initial centers for the kmeans++ algorithm

Description

Determine initial centers for the kmeans++ algorithm

Usage

kmeanspp_init(n_cluster, x = NULL, dm = NULL)

Value

Row indices of initial cluster centers of x

Arguments

x

data matrix to be clustered

dm

distance matrix (between rows of x; of class "dist")