Density

Trait Density 

Source
pub trait Density {
    type Param;
    type Output;

    // Required method
    fn density(&self, at: Self::Param) -> Self::Output;
}
Expand description

Density function.

Required Associated Types§

Source

type Param

Parameter type.

Source

type Output

Output density value type.

Required Methods§

Source

fn density(&self, at: Self::Param) -> Self::Output

Calculate the density at the given point.

Implementors§

Source§

impl<Ks> Density for KernelDensityEstimator<Ks>
where Ks: Iterator + Clone, Ks::Item: Density, <<Ks as Iterator>::Item as Density>::Param: Copy, <<Ks as Iterator>::Item as Density>::Output: SelfAdd + SelfDiv + FromPrimitive + Zero,

Source§

type Param = <<Ks as Iterator>::Item as Density>::Param

Source§

type Output = <<Ks as Iterator>::Item as Density>::Output

Source§

impl<P, D> Density for Binomial<P, D>
where P: Copy + Into<D> + Zero + PartialOrd + One + SelfSub, D: Float + Sum,

Source§

type Param = P

Source§

type Output = D

Source§

impl<P, D> Density for Uniform<P, D>
where P: Copy + Into<D> + PartialOrd + Additive, D: SelfDiv + Zero + ConstDoubleSqrt3,

Source§

type Param = P

Source§

type Output = D

Source§

impl<T> Density for Epanechnikov<T>
where T: SelfSub + Multiplicative + Copy + PartialOrd + SelfNeg + SelfDiv + One + Zero + ConstSqrt5 + ConstThreeQuarters,

Source§

type Param = T

Source§

type Output = T

Source§

impl<T> Density for Gaussian<T>
where T: Copy + ConstFrac1SqrtTau + SelfSub + Multiplicative + ConstOneHalf + SelfExp + SelfNeg,

Source§

type Param = T

Source§

type Output = T