Struct flow_sdk::algorithms::rand::distributions::Poisson [−][src]
pub struct Poisson { /* fields omitted */ }
Expand description
The Poisson distribution Poisson(lambda)
.
This distribution has a density function:
f(k) = lambda^k * exp(-lambda) / k!
for k >= 0
.
Example
use rand::distributions::{Poisson, Distribution};
let poi = Poisson::new(2.0);
let v = poi.sample(&mut rand::thread_rng());
println!("{} is from a Poisson(2) distribution", v);
Implementations
Trait Implementations
Generate a random value of T
, using rng
as the source of randomness.
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
Auto Trait Implementations
impl RefUnwindSafe for Poisson
impl UnwindSafe for Poisson
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more