Skip to main content

Module sampling

Module sampling 

Source
Expand description

Stratified sampling and Latin hypercube designs — seeded, exact stratification of the unit interval / hypercube.

Functions§

latin_hypercube
An n x dims Latin hypercube: every dimension is exactly stratified (one point per stratum), with independent random pairings across dimensions. Deterministic per seed.
stratified_normals
n stratified standard normals (stratified uniforms through the inverse normal CDF).
stratified_uniforms
n stratified uniforms: exactly one jittered draw per stratum [i/n, (i+1)/n). Cuts the variance of smooth 1-D integrands from O(1/n) to O(1/n^3). Deterministic per seed.