Enum peroxide::statistics::dist::TPDist
source · pub enum TPDist<T: PartialOrd + SampleUniform + Copy + Into<f64>> {
Uniform(T, T),
Binomial(usize, T),
Normal(T, T),
Beta(T, T),
Gamma(T, T),
}
Expand description
Two parameter distribution
§Distributions
Uniform(start, end)
: Uniform distributionNormal(mean, std)
: Normal distribution
Variants§
Trait Implementations§
source§impl<T: Clone + PartialOrd + SampleUniform + Copy + Into<f64>> Clone for TPDist<T>
impl<T: Clone + PartialOrd + SampleUniform + Copy + Into<f64>> Clone for TPDist<T>
source§impl<T: Debug + PartialOrd + SampleUniform + Copy + Into<f64>> Debug for TPDist<T>
impl<T: Debug + PartialOrd + SampleUniform + Copy + Into<f64>> Debug for TPDist<T>
source§impl<T: PartialOrd + SampleUniform + Copy + Into<f64>> ParametricDist for TPDist<T>
impl<T: PartialOrd + SampleUniform + Copy + Into<f64>> ParametricDist for TPDist<T>
source§impl<T: Debug + PartialOrd + SampleUniform + Copy + Into<f64>> Printable for TPDist<T>
impl<T: Debug + PartialOrd + SampleUniform + Copy + Into<f64>> Printable for TPDist<T>
source§impl<T: PartialOrd + SampleUniform + Copy + Into<f64>> RNG for TPDist<T>
impl<T: PartialOrd + SampleUniform + Copy + Into<f64>> RNG for TPDist<T>
RNG for TPDist
source§fn sample_with_rng<R: Rng + Clone>(&self, rng: &mut R, n: usize) -> Vec<f64>
fn sample_with_rng<R: Rng + Clone>(&self, rng: &mut R, n: usize) -> Vec<f64>
Extract samples of distributions with rng
source§fn pdf<S: PartialOrd + SampleUniform + Copy + Into<f64>>(&self, x: S) -> f64
fn pdf<S: PartialOrd + SampleUniform + Copy + Into<f64>>(&self, x: S) -> f64
Probability Distribution Function Read more
source§fn cdf<S: PartialOrd + SampleUniform + Copy + Into<f64>>(&self, x: S) -> f64
fn cdf<S: PartialOrd + SampleUniform + Copy + Into<f64>>(&self, x: S) -> f64
Cumulative Distribution Function Read more
source§impl<T: PartialOrd + SampleUniform + Copy + Into<f64>> Statistics for TPDist<T>
impl<T: PartialOrd + SampleUniform + Copy + Into<f64>> Statistics for TPDist<T>
Auto Trait Implementations§
impl<T> Freeze for TPDist<T>where
T: Freeze,
impl<T> RefUnwindSafe for TPDist<T>where
T: RefUnwindSafe,
impl<T> Send for TPDist<T>where
T: Send,
impl<T> Sync for TPDist<T>where
T: Sync,
impl<T> Unpin for TPDist<T>where
T: Unpin,
impl<T> UnwindSafe for TPDist<T>where
T: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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