Description Usage Arguments Examples
Function performing the loop in the SW algorithm.
1 | loopSW(Bds, Cols, ncolors, Nrun, Betas)
|
Bds |
matrix of bonds |
Cols |
Vector of colors. |
Nrun |
number of runs. |
Betas |
vector of parameters. |
ncolor |
number of spins. |
1 2 3 4 5 6 7 8 9 | Obs.loc = as.matrix(expand.grid(1:10,1:10))
Bds = getBonds(Obs.loc, NN = 4)
Betas = c(0.8, 0.8, 0.2)
Cols = sample(1:3, 100, replace = TRUE)
par(mfrow = c(1,1))
col = grey.colors(3)
image(matrix(Cols, ncol = 10), col = col)
CS = loopSW(Bds, Cols, 3, 1000, Betas)
image(matrix(CS, ncol = 10), col = col)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.