mfm_coefficients: computing coefficients for mixture of finite mixture model

Description Usage Arguments Value

View source: R/precompute.R

Description

Function to compute log(V_N(T)) under given MFM parameters for t = 1:upto. Pre-computed prior to posterior sampling.

Usage

1
mfm_coefficients(log_pk, gamma, n, upto)

Arguments

log_pk

log of prior probability: pr(K=k)

gamma

the hyperparameter for symmetric Dirichlet prior for pi_K

n

number of observations

upto

the upper limit (t<= upto) to compute the coefficient

Value

a vector of log coefficients in mixture of finite mixtures


zhenkewu/rewind documentation built on Sept. 9, 2020, 3:40 p.m.