bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitrl::rl::algos::es::PortableNormal Class Reference

Normal random numbers that are the same on every machine. More...

#include <evolution_strategy.h>

Public Member Functions

 PortableNormal (std::uint64_t seed)
real_t operator() ()

Detailed Description

Normal random numbers that are the same on every machine.

std::normal_distribution is left to the standard library, so two machines can draw other numbers from the same seed. This draws them from std::mt19937_64, whose numbers the standard fixes, with the Box-Muller transform, so that ranks on any machines make the same noise.

Constructor & Destructor Documentation

◆ PortableNormal()

bitrl::rl::algos::es::PortableNormal::PortableNormal ( std::uint64_t seed)
inlineexplicit

Member Function Documentation

◆ operator()()

real_t bitrl::rl::algos::es::PortableNormal::operator() ( )
inline

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