gibbs: Markov chain Monte Carlo methods. This method is an inner...

View source: R/RcppExports.R

gibbsR Documentation

Markov chain Monte Carlo methods. This method is an inner method.

Description

Inner method call from crp_train method.

Usage

gibbs(data_length, dim, data_raw,data_raw_result, alpha, burn_in, iteration)

Arguments

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.

Value

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.


jirotubuyaki/CRPClustering documentation built on July 5, 2022, 11:33 p.m.