mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-14 15:04:09 +00:00
add random::poisson_distribution
This commit is contained in:
parent
befe29adf0
commit
9bcc98cb29
5 changed files with 448 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue