pub trait RNG {
fn sample(&self, n: usize) -> Vec<f64>;
fn pdf<S: PartialOrd + SampleUniform + Copy + Into<f64>>(&self, x: S) -> f64;
fn cdf<S: PartialOrd + SampleUniform + Copy + Into<f64>>(&self, x: S) -> f64;
}
Expand description
Required Methods
sourcefn pdf<S: PartialOrd + SampleUniform + Copy + Into<f64>>(&self, x: S) -> f64
fn pdf<S: PartialOrd + SampleUniform + Copy + Into<f64>>(&self, x: S) -> f64
sourcefn cdf<S: PartialOrd + SampleUniform + Copy + Into<f64>>(&self, x: S) -> f64
fn cdf<S: PartialOrd + SampleUniform + Copy + Into<f64>>(&self, x: S) -> f64
Implementors
impl RNG for WeightedUniform<f64>
impl<T: PartialOrd + SampleUniform + Copy + Into<f64>> RNG for OPDist<T>
RNG for OPDist
impl<T: PartialOrd + SampleUniform + Copy + Into<f64>> RNG for TPDist<T>
RNG for TPDist