pub trait Distribution: Clone + Debug + Send + Sync {
    type Value: RandomVariable;
    type Condition: Clone + Debug + Send + Sync;

    fn p_kernel(
        &self,
        x: &Self::Value,
        theta: &Self::Condition
    ) -> Result<f64, DistributionError>; }
Expand description

The trait which all structs of distribution must implement.

  • fk: The kernel part of probability density function f. The kernel means that it doesn’t need normalization term of probability density function.

Required Associated Types

Required Methods

Implementors

p returns the constant multiplied value so it can be used only for MCMC.