similarityMatC: C++ implementation

Description Usage Arguments Examples

View source: R/RcppExports.R

Description

C++ implementation

Usage

1

Arguments

cc

a matrix whose columns each represents a (MCMC) partition

Examples

1
2
3
4
5
6
7
8
c <- list(c(1,1,2,3,2,3), c(1,1,1,2,3,3),c(2,2,1,1,1,1))
similarityMatC(sapply(c, "["))

c2 <- list()
for(i in 1:10){
    c2 <- c(c2, list(rmultinom(n=1, size=200, prob=rexp(n=200))))
}
similarityMatC(sapply(c2, "["))

NPflow documentation built on Feb. 6, 2020, 5:15 p.m.