mrfse.sample | R Documentation |
Generate a independent sample of a Markov random field according to the probilities of the sampler.
mrfse.sample(sampler, n)
sampler |
A sampler created by |
n |
Size of sample |
A matrix whose number of columns is the number of nodes. Each line is a single independent sample of Markov random field given by the probabilites of sampler.
Rodrigo Carvalho
library(mrfse) adj = matrix(c(0, 1, 0, 0, 0, 0, 0, 1, 0), byrow=TRUE, ncol=3) sampler = mrfse.create.sampler(adj, 3) mrfse.sample(sampler, 3000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.