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
Uniform(T, T)
Binomial(usize, T)
Normal(T, T)
Beta(T, T)
Gamma(T, T)
Trait Implementations
sourceimpl<T: Clone + PartialOrd + SampleUniform + Copy + Into<f64>> Clone for TPDist<T>
impl<T: Clone + PartialOrd + SampleUniform + Copy + Into<f64>> Clone for TPDist<T>
sourceimpl<T: Debug + PartialOrd + SampleUniform + Copy + Into<f64>> Debug for TPDist<T>
impl<T: Debug + PartialOrd + SampleUniform + Copy + Into<f64>> Debug for TPDist<T>
sourceimpl<T: PartialOrd + SampleUniform + Copy + Into<f64>> ParametricDist for TPDist<T>
impl<T: PartialOrd + SampleUniform + Copy + Into<f64>> ParametricDist for TPDist<T>
sourceimpl<T: Debug + PartialOrd + SampleUniform + Copy + Into<f64>> Printable for TPDist<T>
impl<T: Debug + PartialOrd + SampleUniform + Copy + Into<f64>> Printable for TPDist<T>
sourceimpl<T: PartialOrd + SampleUniform + Copy + Into<f64>> RNG for TPDist<T>
impl<T: PartialOrd + SampleUniform + Copy + Into<f64>> RNG for TPDist<T>
RNG for TPDist
sourcefn 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
sourcefn 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
sourceimpl<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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more