Struct probability::prelude::Exponential [−][src]
An exponential distribution.
Implementations
impl Exponential
[src]
pub fn new(lambda: f64) -> Self
[src]
Create an exponential distribution with rate lambda
.
It should hold that lambda > 0
.
pub fn lambda(&self) -> f64
[src]
Return the rate parameter.
Trait Implementations
impl Clone for Exponential
[src]
fn clone(&self) -> Exponential
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Continuous for Exponential
[src]
impl Copy for Exponential
[src]
impl Debug for Exponential
[src]
impl Distribution for Exponential
[src]
impl Entropy for Exponential
[src]
impl Inverse for Exponential
[src]
impl Kurtosis for Exponential
[src]
impl Mean for Exponential
[src]
impl Median for Exponential
[src]
impl Modes for Exponential
[src]
impl Sample for Exponential
[src]
impl Skewness for Exponential
[src]
impl Variance for Exponential
[src]
Auto Trait Implementations
impl RefUnwindSafe for Exponential
impl Send for Exponential
impl Sync for Exponential
impl Unpin for Exponential
impl UnwindSafe for Exponential
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,