pub enum OPDist<T: PartialOrd + SampleUniform + Copy + Into<f64>> {
Bernoulli(T),
StudentT(T),
}
Expand description
Variants
Bernoulli(T)
StudentT(T)
Trait Implementations
sourceimpl<T: Clone + PartialOrd + SampleUniform + Copy + Into<f64>> Clone for OPDist<T>
impl<T: Clone + PartialOrd + SampleUniform + Copy + Into<f64>> Clone for OPDist<T>
sourceimpl<T: Debug + PartialOrd + SampleUniform + Copy + Into<f64>> Debug for OPDist<T>
impl<T: Debug + PartialOrd + SampleUniform + Copy + Into<f64>> Debug for OPDist<T>
sourceimpl<T: PartialOrd + SampleUniform + Copy + Into<f64>> ParametricDist for OPDist<T>
impl<T: PartialOrd + SampleUniform + Copy + Into<f64>> ParametricDist for OPDist<T>
sourceimpl<T: Debug + PartialOrd + SampleUniform + Copy + Into<f64>> Printable for OPDist<T>
impl<T: Debug + PartialOrd + SampleUniform + Copy + Into<f64>> Printable for OPDist<T>
sourceimpl<T: PartialOrd + SampleUniform + Copy + Into<f64>> RNG for OPDist<T>
impl<T: PartialOrd + SampleUniform + Copy + Into<f64>> RNG for OPDist<T>
RNG for OPDist
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
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more