get.N.CLASS {pmclust} | R Documentation |
This function will collect the total elements for every clusters from all processors that the all reduced calls with the sum operation will be performed.
get.N.CLASS.dmat
is a ddmatrix
version of get.N.CLASS
.
The get.CLASS
returns class ids.
get.N.CLASS(K) get.N.CLASS.dmat(K) get.CLASS(PARAM)
K |
the total number of clusters. |
PARAM |
a set of parameters. |
The final results are distributed in all processors including the total
elements for each cluster. The global variable CLASS.spmd
stores the identification for each observation on each processors.
This function will first summary CLASS.spmd
in K
categories,
then use the all reduce function with the sum operation to add the numbers
by clusters.
The COMM.RANK
0 will be used to take care the printing.
K
numbers will be returned that are the total elements for each
cluster. Sum of these K
numbers should be equal to N
the
total number of observations.
Wei-Chen Chen wccsnow@gmail.com and George Ostrouchov.
Programming with Big Data in R Website: http://r-pbd.org/
High Performance Statistical Computing (HPSC) Website: http://thirteen-01.stat.iastate.edu/snoweye/hpsc/
em.step
,
aecm.step
,
apecm.step
,
apecma.step
,
kmeans.step
.
kmeans.step.dmat
.
## Not run: # Examples can be found in the help pages of em.step(), # aecm.step(), apecm.step(), apecma.step(), and kmeans.step(). # Examples for ddmatrix version can be found in the help pages of # kmeans.step.dmat(). ## End(Not run)