Learn R Programming

BNPmix (version 0.2.5)

BNPmix_BIN: C++ function - compute the Binder distances

Description

C++ function - compute the Binder distances

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_BIN(M, psmM)
}

# }

Run the code above in your browser using DataLab