Trait hyperopt::kernel::Density

source ·
pub trait Density<P, D> {
    // Required method
    fn density(&self, at: P) -> D;
}
Expand description

Density function.

§Type parameters

  • [P]: parameter type
  • [D]: density type

Required Methods§

source

fn density(&self, at: P) -> D

Calculate density at the given point.

Implementors§

source§

impl<K, P, D> Density<P, D> for Component<K, P>
where K: Density<P, D>, P: Copy + Debug + Div<Output = P> + Sub<Output = P> + TryInto<D>, <P as TryInto<D>>::Error: Debug, D: Div<Output = D>,

source§

impl<P, D> Density<P, D> for Uniform
where P: PartialOrd + FromPrimitive, D: Zero + One,

source§

impl<P, D> Density<P, D> for Binomial<P, D>
where P: Copy + Integer + TryInto<D>, <P as TryInto<D>>::Error: Debug, D: Float,

source§

impl<P, D, C> Density<P, D> for KernelDensityEstimator<C>
where C: Iterator + Clone, C::Item: Density<P, D>, P: Copy, D: Add<Output = D> + Div<Output = D> + FromPrimitive + Zero,

source§

impl<T> Density<T, T> for Epanechnikov
where T: Copy + Add<Output = T> + Debug + Div<Output = T> + Mul<Output = T> + Neg<Output = T> + PartialOrd + Sub<Output = T> + FromPrimitive + One + Zero,

source§

impl<T> Density<T, T> for Gaussian
where T: Debug + Float + FromPrimitive,