<< icascores (X) One matrix of observations/variables outlier >>

fact >> (X) One matrix of observations/variables > kcmeans

kcmeans

classifies the observations into groups according to the k-means classification

Calling sequence

function[res]=kcmeans(xi,ngroup,nchanged)

Arguments

xi:

a matrix (n x q) or a Div structure

ngroup:

number of groups for the classification

(nchanged):

stops when nchanged classes have changed at the previous step

res.group:

classification of the observations within groups

res.group.d is a vector of dimensions (n x 1) giving the group (1 ou 2… ou ngroup) for each observation

res.barycenter:

barycenters of the groups

res.barycenter.d is a matrix of dimensions (ngroup x q)

Examples

[result]=kcmeans(x,5)

Authors


Report an issue
<< icascores (X) One matrix of observations/variables outlier >>