21 #ifndef OPAL_UNIFORM_H
22 #define OPAL_UNIFORM_H
27 #include <type_traits>
34 typedef typename std::conditional<
35 std::is_integral<T>::value,
36 std::uniform_int_distribution<T>,
37 std::uniform_real_distribution<T>
57 void create(boost::shared_ptr<SampleIndividual>& ind,
size_t i) {
boost::shared_ptr< CmdArguments > CmdArguments_t
int seed
The current random seed.
boost::function< boost::tuple< double, bool >arguments_t)> type
static RNGStream * getInstance()
static void deleteInstance(RNGStream *&generator)
DISTR::result_type getNext(DISTR &RNGDist)
std::conditional< std::is_integral< T >::value, std::uniform_int_distribution< T >, std::uniform_real_distribution< T > >::type dist_t
RNGStream * RNGInstance_m
Uniform(T lower, T upper)
void create(boost::shared_ptr< SampleIndividual > &ind, size_t i)
void allocate(const CmdArguments_t &, const Comm::Bundle_t &comm)
Uniform(T lower, T upper, std::size_t seed)
bundles all communicators for a specific role/pid