RDocumentation
Moon
Learn R
Search all packages and functions
bayesImageS (version 0.3-3)
exactPotts: Calculate the distribution of the Potts model using a brute force algorithm.
Description
Warning
: this algorithm is O$(k^n)$ and therefore will not scale for $k^n > 2^{31} - 1$
Usage
exactPotts(neighbors, blocks, k, beta)
Arguments
neighbors
A matrix of all neighbors in the lattice, one row per pixel.
blocks
A list of pixel indices, dividing the lattice into independent blocks.
k
The number of unique labels.
beta
The inverse temperature parameter of the Potts model.
Value
A list containing the following elements: