Learn R Programming

BNPmix (version 0.2.5)

clean_partition: C++ function - clean the partition matrix

Description

C++ function - clean the partition 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,3,1,1,4,4,1,1,3,1,1,3,1,1), ncol = 4)
  clean_partition(M)
}

# }

Run the code above in your browser using DataLab