Learn R Programming

BNPmix (version 0.2.5)

BNPmix_psm: C++ function - compute the posterior similarity matrix

Description

C++ function - compute the posterior similarity matrix

Arguments

M

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

Examples

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

# }

Run the code above in your browser using DataLab