Beispiel #1
0
    /*!
     * \brief Generate a new value
     * \return the newly generated value
     */
    value_type operator()() {
        auto x = distribution(rand_engine);

        while (std::abs(x - distribution.mean()) > 2.0 * distribution.stddev()) {
            x = distribution(rand_engine);
        }

        return x;
    }
Beispiel #2
0
 double inline GetDev() const {
     return gau.stddev();
 }
Beispiel #3
0
 double sigma() const { return dist.stddev(); }
Beispiel #4
0
 double mean() const { return dist.mean(); }