Mean, center of each cluster, number of objects in each cluster  informations retrieved from partitioned data
using cls.attrib
.
1  cls.attrib(data, clust)

data 

clust 
integer 
As a result function returns object of list
type which contains three objects with information about:
mean
 numeric vector
which represents mean of given data
,
cluster.center
 numeric matrix
where columns correspond to variables and rows to observations,
cluster.size
 integer vector
with information about size of each cluster.
Lukasz Nieweglowski
Result of function is mostly used to compute following indicies:
clv.Dis
, wcls.matrix
, bcls.matrix
.
1 2 3 4 5 6  # create "data" matrix
mx < matrix(0,4,2)
mx[2,1] = mx[3,2] = mx[4,1] = mx[4,2] = 1
# give information about cluster assignment
clust = as.integer(c(1,1,2,2))
cls.attrib(mx,clust)

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.