Function sobol_burley::sample_4d[][src]

pub fn sample_4d(sample_index: u32, dimension_set: u32, seed: u32) -> [f32; 4]
Expand description

Compute four dimensions of a single sample in the Sobol sequence.

All numbers returned are in the interval [0, 1).

sample_index specifies which sample in the Sobol sequence to compute.

dimension_set specifies which four dimensions to compute. 0 yields the first four dimensions, 1 the second four dimensions, and so on.

seed produces statistically independent Sobol sequences. Passing two different seeds will produce two different sequences that are only randomly associated, with no stratification or correlation between them.

Panics

Panics if dimension_set is greater than or equal to NUM_DIMENSION_SETS.