Skip to contents

Inverse-CDF sampling covers the truncated and untruncated cases with the same line, and it is exact: no rejection loop that stalls when the bounds cut into a tail.

Usage

marginal_sample(m, n)

Arguments

m

A marginal from new_marginal().

n

Number of draws.