gibbs | R Documentation |
Inner method call from crp_train method.
gibbs(data_length, dim, data_raw,data_raw_result, alpha, burn_in, iteration)
data_length |
:data size. |
dim |
:data dimention. |
data_raw |
:scaled data. |
data_raw_result |
:raw data. |
alpha |
: a numeric of a CRP concentrate rate. |
burn_in |
: an iteration integer of burn in. |
iteration |
: an iteration integer. |
result : an list has three elements. The "clusters" is cluster number and joined data number and cluster's mean and variance matrix. The "max" is the cluster number for data i join in. The "z" is the iteration history for an each data i join in clusters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.