Struct flow_sdk::algorithms::rand::distributions::Pareto [−][src]
pub struct Pareto { /* fields omitted */ }
Expand description
Samples floating-point numbers according to the Pareto distribution
Example
use rand::prelude::*;
use rand::distributions::Pareto;
let val: f64 = SmallRng::from_entropy().sample(Pareto::new(1., 2.));
println!("{}", val);
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 Pareto
impl UnwindSafe for Pareto
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