Description Usage Arguments Value Examples
Simulate pixel labels using chequerboard Gibbs sampling.
1 | mcmcPottsNoData(beta, k, neighbors, blocks, niter = 1000, random = TRUE)
|
beta |
The inverse temperature parameter of the Potts model. |
k |
The number of unique labels. |
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. |
niter |
The number of iterations of the algorithm to perform. |
random |
Whether to initialize the labels using random or deterministic starting values. |
A list containing the following elements:
allocAn n by k matrix containing the number of times that pixel i was allocated to label j.
zAn (n+1) by k matrix containing the final sample from the Potts model after niter iterations of chequerboard Gibbs.
sumAn niter by 1 matrix containing the sum of like neighbors, i.e. the sufficient statistic of the Potts model, at each iteration.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.