[−][src]Type Definition rstat::multivariate::normal::DiagonalNormal
type DiagonalNormal = Normal<Array1<f64>>;
Methods
impl DiagonalNormal
[src]
pub fn diagonal(mu: Array1<f64>, sigma: Array1<f64>) -> Result<Self, Error>
[src]
pub fn diagonal_unchecked(mu: Array1<f64>, sigma: Array1<f64>) -> Self
[src]
pub fn precision(&self) -> Array1<f64>
[src]
pub fn z(&self, x: &[f64]) -> f64
[src]
Trait Implementations
impl ContinuousDistribution for DiagonalNormal
[src]
impl Distribution for DiagonalNormal
[src]
type Support = ProductSpace<Reals>
Support of sample elements.
type Params = Params<Array1<f64>>
Parameter set uniquely defining the instance.
fn support(&self) -> ProductSpace<Reals>
[src]
fn params(&self) -> Self::Params
[src]
fn cdf(&self, _: &Vec<f64>) -> Probability
[src]
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vec<f64>
[src]
fn into_support(self) -> Self::Support
[src]
fn into_params(self) -> Self::Params
[src]
fn ccdf(&self, x: &Sample<Self>) -> Probability
[src]
fn log_cdf(&self, x: &Sample<Self>) -> f64
[src]
fn log_ccdf(&self, x: &Sample<Self>) -> f64
[src]
fn sample_n<R: Rng + ?Sized>(&self, rng: &mut R, n: usize) -> Vec<Sample<Self>>
[src]
fn sample_iter<'a, R: Rng + ?Sized>(
&'a self,
rng: &'a mut R
) -> Sampler<'a, Self, R>
[src]
&'a self,
rng: &'a mut R
) -> Sampler<'a, Self, R>