pub struct BernoulliRV {
pub p: f64,
}Expand description
Bernoulli random variable X ~ Bernoulli(p).
Fields§
§p: f64Implementations§
Trait Implementations§
Source§impl Clone for BernoulliRV
impl Clone for BernoulliRV
Source§fn clone(&self) -> BernoulliRV
fn clone(&self) -> BernoulliRV
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BernoulliRV
impl RefUnwindSafe for BernoulliRV
impl Send for BernoulliRV
impl Sync for BernoulliRV
impl Unpin for BernoulliRV
impl UnsafeUnpin for BernoulliRV
impl UnwindSafe for BernoulliRV
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more