get.N.CLASS | 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.
The get.CLASS
returns class ids.
get.N.CLASS(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: https://pbdr.org/
em.step
,
aecm.step
,
apecm.step
,
apecma.step
,
kmeans.step
.
## Not run:
# Examples can be found in the help pages of em.step(),
# aecm.step(), apecm.step(), apecma.step(), and kmeans.step().
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.