ildsgen::VdCorput class

Van der Corput sequence generator.

Implementation based on pre-calculating the scale factor.

Constructors, destructors, conversion operators

VdCorput(unsigned long base = 2, unsigned int scale = DEFAULT_SCALE) explicit
Construct a new VdCorput object.
VdCorput(VdCorput&&) deleted noexcept

Public functions

auto pop() -> unsigned long -> auto
Increments count and calculates the next value in the sequence.
auto reseed(const unsigned long& seed) -> void -> auto
Resets the state of the sequence generator.
auto operator=(VdCorput&&) -> VdCorput& deleted noexcept

Function documentation

ildsgen::VdCorput::VdCorput(unsigned long base = 2, unsigned int scale = DEFAULT_SCALE) explicit

Construct a new VdCorput object.

Parameters
base in The base of the number system (default: 2)
scale in The number of digits (default: 10)

auto ildsgen::VdCorput::pop() -> unsigned long

Increments count and calculates the next value in the sequence.

Returns unsigned long

auto ildsgen::VdCorput::reseed(const unsigned long& seed) -> void

Resets the state of the sequence generator.

Parameters
seed in