Struct flow_sdk::algorithms::secp256k1::rand::distributions::Triangular [−][src]
pub struct Triangular { /* fields omitted */ }
Expand description
The triangular distribution.
Example
use rand::distributions::{Triangular, Distribution};
let d = Triangular::new(0., 5., 2.5);
let v = d.sample(&mut rand::thread_rng());
println!("{} is from a triangular 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 Triangular
impl Send for Triangular
impl Sync for Triangular
impl Unpin for Triangular
impl UnwindSafe for Triangular
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