30 #include "../population.h"
58 return typeid(*this).name();
99 s <<
"Algorithm name: " <<
get_name();
115 return std::string();
bool get_screen_output() const
Gets screen output.
Generic thread-safe generator of pseudo-random number generators.
void set_screen_output(const bool p)
Setter-Getter for protected m_screen_output data.
This rng returns an unsigned integer in the [0,2**32-1] range.
base()
Default constructor.
virtual ~base()
Trivial destructor.
bool m_screen_output
Indicates to the derived class whether to print stuff on screen.
virtual std::string get_name() const
Get algorithm's name.
void reset_rngs(const unsigned int) const
Resets the seed of the internal rngs using a user-provided seed.
std::string human_readable() const
Return human readable representation of the algorithm.
virtual std::string human_readable_extra() const
Extra information in human readable format.
rng_uint32 m_urng
Random number generator for unsigned integer values.
std::ostream & operator<<(std::ostream &s, const base &alg)
Overload stream operator for algorithm::base.
rng_double m_drng
Random number generator for double-precision floating point values.
This rng returns a double in the [0,1[ range.