Enum peroxide::statistics::dist::OPDist
source · pub enum OPDist<T: PartialOrd + SampleUniform + Copy + Into<f64>> {
Bernoulli(T),
StudentT(T),
}
Expand description
Variants§
Trait Implementations§
source§impl<T: Clone + PartialOrd + SampleUniform + Copy + Into<f64>> Clone for OPDist<T>
impl<T: Clone + PartialOrd + SampleUniform + Copy + Into<f64>> Clone for OPDist<T>
source§impl<T: Debug + PartialOrd + SampleUniform + Copy + Into<f64>> Debug for OPDist<T>
impl<T: Debug + PartialOrd + SampleUniform + Copy + Into<f64>> Debug for OPDist<T>
source§impl<T: PartialOrd + SampleUniform + Copy + Into<f64>> ParametricDist for OPDist<T>
impl<T: PartialOrd + SampleUniform + Copy + Into<f64>> ParametricDist for OPDist<T>
source§impl<T: Debug + PartialOrd + SampleUniform + Copy + Into<f64>> Printable for OPDist<T>
impl<T: Debug + PartialOrd + SampleUniform + Copy + Into<f64>> Printable for OPDist<T>
source§impl<T: PartialOrd + SampleUniform + Copy + Into<f64>> RNG for OPDist<T>
impl<T: PartialOrd + SampleUniform + Copy + Into<f64>> RNG for OPDist<T>
RNG for OPDist
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 OPDist<T>
impl<T: PartialOrd + SampleUniform + Copy + Into<f64>> Statistics for OPDist<T>
Auto Trait Implementations§
impl<T> Freeze for OPDist<T>where
T: Freeze,
impl<T> RefUnwindSafe for OPDist<T>where
T: RefUnwindSafe,
impl<T> Send for OPDist<T>where
T: Send,
impl<T> Sync for OPDist<T>where
T: Sync,
impl<T> Unpin for OPDist<T>where
T: Unpin,
impl<T> UnwindSafe for OPDist<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