sample.junction: Sampling method for low-treewidth graphs

Description Usage Arguments Details Value Examples

View source: R/sample.R

Description

Generating samples from the distribution

Usage

1
sample.junction(crf, size)

Arguments

crf

The CRF

size

The sample size

Details

Exact sampling for low-treewidth graphs using junction trees

Value

This function will return a matrix with size rows and crf$n.nodes columns, in which each row is a sampled configuration.

Examples

1
2
3

CRF documentation built on Dec. 2, 2019, 1:11 a.m.