Struct probability::distribution::Beta [−][src]
A beta distribution.
Implementations
impl Beta
[src]
pub fn new(alpha: f64, beta: f64, a: f64, b: f64) -> Self
[src]
Create a beta distribution with shape parameters alpha
and beta
on interval [a, b]
.
It should hold that alpha > 0
, beta > 0
, and a < b
.
pub fn alpha(&self) -> f64
[src]
Return the first shape parameter.
pub fn beta(&self) -> f64
[src]
Return the second shape parameter.
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.
Trait Implementations
impl Clone for Beta
[src]
impl Continuous for Beta
[src]
impl Copy for Beta
[src]
impl Debug for Beta
[src]
impl Distribution for Beta
[src]
impl Entropy for Beta
[src]
impl Inverse for Beta
[src]
impl Kurtosis for Beta
[src]
impl Mean for Beta
[src]
impl Median for Beta
[src]
impl Modes for Beta
[src]
impl Sample for Beta
[src]
impl Skewness for Beta
[src]
impl Variance for Beta
[src]
Auto Trait Implementations
impl RefUnwindSafe for Beta
impl Send for Beta
impl Sync for Beta
impl Unpin for Beta
impl UnwindSafe for Beta
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>,