add random::poisson_distribution

This commit is contained in:
bolero-MURAKAMI 2015-04-10 15:40:12 +09:00
parent befe29adf0
commit 9bcc98cb29
5 changed files with 448 additions and 2 deletions

View file

@ -81,12 +81,10 @@ namespace sprout {
}
};
private:
public:
static SPROUT_CONSTEXPR RealType init_log_1mp(RealType p) {
return sprout::math::log(1 - p);
}
private:
public:
RealType p_;
RealType log_1mp_;
private: