MultivariateKDE

Trait MultivariateKDE 

Source
pub trait MultivariateKDE<B, K, F: KDEFloat>: Sealed {
    // Required methods
    fn new<T: Into<Matrix2D<F>>>(
        observations: T,
        bandwidth: B,
        kernel: K,
    ) -> Self;
    fn pdf(&self, dataset: &Matrix2D<F>) -> Vec<F>;
    fn cdf(&self, dataset: &Matrix2D<F>) -> Vec<F>;
    fn sample(&self, dataset: &Matrix2D<F>, n_samples: usize) -> Matrix2D<F>;
}

Required Methods§

Source

fn new<T: Into<Matrix2D<F>>>(observations: T, bandwidth: B, kernel: K) -> Self

Source

fn pdf(&self, dataset: &Matrix2D<F>) -> Vec<F>

Source

fn cdf(&self, dataset: &Matrix2D<F>) -> Vec<F>

Source

fn sample(&self, dataset: &Matrix2D<F>, n_samples: usize) -> Matrix2D<F>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§