pub trait KernelMean<M> {
// Required method
fn kernel_mean(&self, measure: &M, x: f64) -> f64;
}Expand description
Analytic mean embedding of a scalar kernel under a probability measure.
For a kernel k and probability measure p, the kernel mean at x is
z(x) = integral k(x, u) p(u) du.The trait is implemented only for kernel/measure pairs with an explicit analytic contract. Unsupported pairs therefore fail at compile time rather than silently falling back to an unrelated numerical approximation.
Required Methods§
Sourcefn kernel_mean(&self, measure: &M, x: f64) -> f64
fn kernel_mean(&self, measure: &M, x: f64) -> f64
Evaluate the analytic kernel mean at x.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".