pub trait ErrorFunction<T>: Clone + Debugwhere
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.
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
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.