calSim: Function to calculate the similarity matrix based on the...

Description Usage Arguments Examples

View source: R/RcppExports.R

Description

Function to calculate the similarity matrix based on the cluster membership indicator of each iteration.

Usage

1
calSim(mat)

Arguments

mat

Matrix of cluster membership indicator from all iterations

Examples

1
2
3
4
5
6
n = 90 ##number of subjects
iters = 200 ##number of iterations
## matrix of cluster membership indicators
## perfect clustering with three clusters
mat = matrix(rep(1:3,each=n/3),nrow=n,ncol=iters)
sim = calSim(t(mat))

BClustLonG documentation built on July 2, 2020, 4 a.m.