Trait ErrorFunction

Source
pub trait ErrorFunction<T>: Clone + Debug
where T: ErfFloat,
{ // Required methods fn erf(x: T) -> T; fn max_dx_nonunity_normal_cdf(sigma: T) -> T; // Provided methods fn normal_cdf(x: T, mean: T, sigma: T) -> T { ... } fn min_dx_nonzero_normal_cdf(sigma: T) -> T { ... } }
Expand description

Error function trait

Error function is used to find integral over cell of the Gaussian distribution.

Wikipedia article

Required Methods§

Source

fn erf(x: T) -> T

Source

fn max_dx_nonunity_normal_cdf(sigma: T) -> T

Provided Methods§

Source

fn normal_cdf(x: T, mean: T, sigma: T) -> T

Source

fn min_dx_nonzero_normal_cdf(sigma: T) -> T

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§