pub struct Beta(/* private fields */);
Implementations§
Trait Implementations§
Source§impl ContinuousDistribution for Beta
impl ContinuousDistribution for Beta
Source§impl Distribution for Beta
impl Distribution for Beta
Source§fn params(&self) -> Params
fn params(&self) -> Params
Returns an instance of the distribution parameters,
Self::Params
. Read moreSource§fn cdf(&self, x: &f64) -> Probability
fn cdf(&self, x: &f64) -> Probability
Evaluates the cumulative distribution function (CDF) at \(x\). Read more
Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64
Draw a random value from the distribution support.
Source§fn into_support(self) -> Self::Support
fn into_support(self) -> Self::Support
Converts
self
into an instance of Self::Support
.Source§fn into_params(self) -> Self::Params
fn into_params(self) -> Self::Params
Converts
self
into an instance of Self::Params
.Source§fn ccdf(&self, x: &Sample<Self>) -> Probability
fn ccdf(&self, x: &Sample<Self>) -> Probability
Evaluates the complementary CDF at \(x\). Read more
Source§fn log_cdf(&self, x: &Sample<Self>) -> f64
fn log_cdf(&self, x: &Sample<Self>) -> f64
Evaluates the log CDF at \(x\), i.e. \(\ln{F(x)}\).
Source§fn log_ccdf(&self, x: &Sample<Self>) -> f64
fn log_ccdf(&self, x: &Sample<Self>) -> f64
Evaluates the log complementary CDF at \(x\), i.e. \(\ln{(1 - F(x))}\).
Source§impl Likelihood for Beta
impl Likelihood for Beta
Source§fn log_likelihood(&self, samples: &[f64]) -> f64
fn log_likelihood(&self, samples: &[f64]) -> f64
Computes the log-likelihood \(l(\theta \mid \bm{x})\).
Source§fn likelihood(&self, samples: &[Sample<Self>]) -> f64
fn likelihood(&self, samples: &[Sample<Self>]) -> f64
Computes the likelihood \(\mathcal{L}(\theta \mid \bm{x})\).
Source§impl Quantiles for Beta
impl Quantiles for Beta
Source§fn quantile(&self, _: Probability) -> f64
fn quantile(&self, _: Probability) -> f64
Evaluates the inverse cumulative distribution function (CDF) at
p
. Read moreSource§fn cquantile(&self, p: Probability) -> f64
fn cquantile(&self, p: Probability) -> f64
Evaluates the complementary quantile function at
x
: Q(1 - p)
.Source§fn lower_quartile(&self) -> f64
fn lower_quartile(&self) -> f64
Computes the lower quartile of the distribution,
Q(0.25)
.Source§fn upper_quartile(&self) -> f64
fn upper_quartile(&self) -> f64
Computes the upper quartile of the distribution,
Q(0.75)
.Source§fn iqr(&self) -> f64
fn iqr(&self) -> f64
Computes the interquartile range (IQR) of the distribution,
Q(0.75) - Q(0.25)
.Source§fn lower_fence(&self) -> f64
fn lower_fence(&self) -> f64
Computes the lower fence of the distribution,
Q(0.25) - 1.5 · IQR
. Read moreSource§fn upper_fence(&self) -> f64
fn upper_fence(&self) -> f64
Computes the lower fence of the distribution,
Q(0.75) + 1.5 · IQR
. Read moreSource§impl ShannonEntropy for Beta
impl ShannonEntropy for Beta
Source§fn shannon_entropy(&self) -> f64
fn shannon_entropy(&self) -> f64
Computes the Shannon entropy of the distribution, \(H(X)\).
Source§impl UnivariateMoments for Beta
impl UnivariateMoments for Beta
Source§fn excess_kurtosis(&self) -> f64
fn excess_kurtosis(&self) -> f64
Computes the excess kurtosis of the distribution.
Source§fn standard_deviation(&self) -> f64
fn standard_deviation(&self) -> f64
Computes the standard deviation of the distribution.
Auto Trait Implementations§
impl Freeze for Beta
impl RefUnwindSafe for Beta
impl Send for Beta
impl Sync for Beta
impl Unpin for Beta
impl UnwindSafe for Beta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more