7 #ifndef SSMPACK_FILTER_RESAMPLER_SYSTEMATIC
8 #define SSMPACK_FILTER_RESAMPLER_SYSTEMATIC
23 template <
class Criterion>
28 std::uniform_real_distribution<double> uniform_;
35 u.imbue([&u0, &num_par, &k]() {
return (k++ + u0) / num_par; });
44 template<
class Criterion>
52 #endif // SSMPACK_FILTER_RESAMPLER_SYSTEMATIC
static Generator & get()
Returns a reference to singleton instance.
Systematic(Criterion criterion)
Implements systematic resampling method.
Systematic< Criterion > makeSystematic(Criterion criterion)
arma::vec generateOrderedNumbers(const int &num_par)