Struct rv::dist::NormalGamma[][src]

pub struct NormalGamma {
    pub m: f64,
    pub r: f64,
    pub s: f64,
    pub v: f64,
}

Prior for Gaussian

Given x ~ N(μ, σ), the Normal Gamma prior implies that μ ~ N(m, 1/(rρ)) and ρ ~ Gamma(ν/2, s/2).

Fields

Methods

impl NormalGamma
[src]

Trait Implementations

impl Debug for NormalGamma
[src]

Formats the value using the given formatter. Read more

impl Clone for NormalGamma
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Rv<Gaussian> for NormalGamma
[src]

Un-normalized probability function Read more

The log of the constant term in the PDF/PMF. Should not be a function of any of the parameters. Read more

Single draw from the Rv Read more

Un-normalized probability function Read more

The constant term in the PDF/PMF. Should not be a function of any of the parameters. Read more

Multiple draws of the Rv Read more

impl Support<Gaussian> for NormalGamma
[src]

Returns true if x is in the support of the Rv Read more

impl HasSuffStat<f64> for NormalGamma
[src]

impl ContinuousDistr<Gaussian> for NormalGamma
[src]

The value of the Probability Density Function (PDF) at x Read more

The value of the log Probability Density Function (PDF) at x Read more

impl ConjugatePrior<f64, Gaussian> for NormalGamma
[src]

Computes the posterior distribution from the data

Log marginal likelihood

Log posterior predictive of y given x

Marginal likelihood of x

Posterior Predictive distribution

Auto Trait Implementations

impl Send for NormalGamma

impl Sync for NormalGamma