Struct probability::prelude::Triangular [−][src]
A triangular distribution.
Implementations
impl Triangular
[src]
pub fn new(a: f64, b: f64, c: f64) -> Self
[src]
Create a triangular distribution with mode c
on interval [a, b]
.
It should hold that a < b
, a <= c
, and c <= b
.
pub fn a(&self) -> f64
[src]
Return the left endpoint of the support.
pub fn b(&self) -> f64
[src]
Return the right endpoint of the support.
pub fn c(&self) -> f64
[src]
Return the mode parameter.
Trait Implementations
impl Clone for Triangular
[src]
fn clone(&self) -> Triangular
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Continuous for Triangular
[src]
impl Copy for Triangular
[src]
impl Debug for Triangular
[src]
impl Distribution for Triangular
[src]
impl Entropy for Triangular
[src]
impl Inverse for Triangular
[src]
impl Kurtosis for Triangular
[src]
impl Mean for Triangular
[src]
impl Median for Triangular
[src]
impl Modes for Triangular
[src]
impl Sample for Triangular
[src]
impl Skewness for Triangular
[src]
impl Variance for Triangular
[src]
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
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>,