Description Usage Arguments Value Note Author(s) Examples
Generates a Markov Chain of random fields and returns the sufficient statistics for each of the observations.
This function automatizes the process of generating a random sample of MRFs
to be used in Monte-Carlo methods by wrapping rmrf2d
and executing it multiple time while storing sufficient statistics instead
of the entire lattice.
| 1 2 3 4 5 6 7 8 9 10 | rmrf2d_mc(
  init_Z,
  mrfi,
  theta,
  family,
  nmc = 100,
  burnin = 100,
  cycles = 4,
  verbose = interactive()
)
 | 
| init_Z | One of two options: 
 | 
| mrfi | A  | 
| theta | A 3-dimensional array describing potentials. Slices represent
interacting positions, rows represent pixel values and columns represent
neighbor values. As an example:  | 
| family | The family of parameter restrictions to potentials. Families
are:
 | 
| nmc | Number of samples to be stored. | 
| burnin | Number of cycles iterated before start collecting sufficient statistics. | 
| cycles | Number of cycles between collected samples. | 
| verbose | 
 | 
A matrix where each row contains the vector of sufficient statistics for an observation.
Fixed regions and incomplete lattices are not supported.
Victor Freguglia
| 1 | rmrf2d_mc(c(80, 80), mrfi(1), theta_potts, family = "oneeach", nmc = 8)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.