22#ifndef OPAL_SAMPLE_WEIGHTED_SEQUENCE_H
23#define OPAL_SAMPLE_WEIGHTED_SEQUENCE_H
34 :
unif_m(0, size_t((upper - lower) / step))
40 :
unif_m(0, size_t((upper - lower) / step), seed)
45 void create(std::shared_ptr<SampleIndividual>& ind,
size_t i) {
46 size_t idx =
unif_m.getNext();
51 unif_m.allocate(args, comm);
std::shared_ptr< CmdArguments > CmdArguments_t
bundles all communicators for a specific role/pid
SampleRandomizedSequence(T lower, T upper, double step)
void create(std::shared_ptr< SampleIndividual > &ind, size_t i)
SampleRandomizedSequence(T lower, T upper, double step, size_t seed)
std::vector< T > points_m
void allocate(const CmdArguments_t &args, const Comm::Bundle_t &comm)