getCanStatF: Function to calculate the canonical statistic.

Description Usage Arguments Examples

View source: R/RcppExports.R

Description

Function to calculate the canonical statistic.

Usage

1
getCanStatF(Bds, Cols, ncolors)

Arguments

Bds

matrix of bonds

Cols

Vector of colors.

ncolor

number of spins.

Examples

1
2
3
4
5
6
7
8
9
Obs.loc = as.matrix(expand.grid(1:4,1:4))
Bds = getBonds(Obs.loc, NN = 4)
Bds = Bds[which(Bds[,1]>0),]
Betas = c(0.8, 0.8, 0.2)
Cols = sample(1:3, 16, replace = TRUE)
par(mfrow = c(1,1))
col = grey.colors(3)
image(matrix(Cols, ncol = 4), col = col)
CS = getCanStatF(Bds, Cols, 3)

ick003/SpTMixture documentation built on May 18, 2019, 2:32 a.m.