BNPmix_BIN {BNPmix}R Documentation

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

{
  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)
}


[Package BNPmix version 1.0.2 Index]