assign_clustpp: Function for assigning clusters to rows in a matrix

Description Usage Arguments Author(s) Examples

View source: R/kpodclustr-package.r

Description

assign_clustpp Function for assigning clusters to rows in a matrix

Usage

1
assign_clustpp(X, init_centers, kmpp_flag = TRUE, max_iter = 20)

Arguments

X

Data matrix containing missing entries whose rows are observations and columns are features

init_centers

Centers for initializing k-means

kmpp_flag

(Optional) Indicator for whether or not to initialize with k-means++

max_iter

(Optional) Maximum number of iterations

Author(s)

Jocelyn T. Chi

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
p <- 2
n <- 100
k <- 3
sigma <- 0.25
missing <- 0.05
Data <- makeData(p,n,k,sigma,missing)
X <- Data$Missing
Orig <- Data$Orig

clusts <- assign_clustpp(Orig, k)

kpodclustr documentation built on May 30, 2017, 5:10 a.m.