| xneig4 | R Documentation |
This is a basis function used in simulation algorithms on the Ising
and Potts models. It counts how many of the four neighbours
of x_{a,b} are of the same colour as this
pixel.
xneig4(x, a, b, col)
x |
grid of coloured pixels |
a |
row index |
b |
column index |
col |
current or proposed colour |
integer between 0 and 4 giving the number of neighbours with the same colour
pottsgibbs,
sumising
data(Laichedata)
xneig4(Laichedata,2,3,1)
xneig4(Laichedata,2,3,0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.