libstp
Robotics library for Botball
Loading...
Searching...
No Matches
libstp::autotune::control::Rng Class Reference

mulberry32 PRNG matching the JS golden-value harness exactly. More...

#include <differential_evolution.hpp>

Public Member Functions

 Rng (std::uint32_t seed)
double next ()
 Uniform double in [0, 1), bit-identical to the JS mulberry32.

Detailed Description

mulberry32 PRNG matching the JS golden-value harness exactly.

Returns doubles in [0, 1). Identical integer arithmetic (32-bit wrapping, Math.imul semantics) guarantees bit-for-bit parity with the reference run.

Definition at line 36 of file differential_evolution.hpp.

Constructor & Destructor Documentation

◆ Rng()

libstp::autotune::control::Rng::Rng ( std::uint32_t seed)
inlineexplicit

Definition at line 39 of file differential_evolution.hpp.

Member Function Documentation

◆ next()

double libstp::autotune::control::Rng::next ( )

Uniform double in [0, 1), bit-identical to the JS mulberry32.


The documentation for this class was generated from the following file: