|
bitsim
Model, simulate, estimate and control robots in C++
|
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() () |
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.
|
inlineexplicit |
|
inline |