VdCorput class
#include <ldsgen/ilds.hpp>
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
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 | |