powered by
Generating samples from the distribution
sample.junction(crf, size)
The CRF
The sample size
This function will return a matrix with size rows and crf$n.nodes columns, in which each row is a sampled configuration.
size
crf$n.nodes
Exact sampling for low-treewidth graphs using junction trees
# NOT RUN { library(CRF) data(Small) s <- sample.junction(Small$crf, 100) # }
Run the code above in your browser using DataLab