powered by
Generating samples from the distribution
sample.cutset(crf, size, cutset, engine = "default")
The CRF
The sample size
A vector of nodes in the cutset
The underlying engine for cutset sampling, possible values are "default", "none", "exact", "chain", and "tree".
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 graphs with a small cutset using cutset conditioning
# NOT RUN { library(CRF) data(Small) s <- sample.cutset(Small$crf, 100, c(2)) # }
Run the code above in your browser using DataLab