boax.core.samplers.halton_normal

Contents

boax.core.samplers.halton_normal#

boax.core.samplers.halton_normal(key, sample_shape)#

The quasi-MC normal sampler based on halton sequences.

Example

>>> sampler = halton_normal(key, (128,))
>>> samples = sampler(Normal(0, 1))
Parameters:
  • key (Array) – The pseudo-random number genererator key.

  • sample_shape (Sequence[Union[int, Any]]) – The sample shape.

Return type:

Sampler[Normal]

Returns:

The corresponding Sampler.