Learn R Programming

BNPmix (version 0.2.5)

BNPmix_VI_LB: C++ function - compute the VI lower bound

Description

C++ function - compute the VI lower bound

Arguments

M

a matrix (r x n), r number of replications, n number of observations

psm_mat

a posterior similarity matrix

Examples

Run this code
# NOT RUN {
{
  M <- matrix(c(1,1,1,2,1,1,2,2,1,1,2,1,1,1,1,2), ncol = 4)
  psmM <- BNPmix_psm(M)
  BNPmix_VI_LB(M, psmM)
}

# }

Run the code above in your browser using DataLab