Trait MathFuncs

Source
pub trait MathFuncs {
    // Required methods
    fn exp(&self) -> Self;
    fn log(&self) -> Self;
    fn norm_cdf(&self) -> Self;
    fn inv_norm_cdf(&self) -> Self;
}
Expand description

Functions for common mathematical operations.

Required Methods§

Source

fn exp(&self) -> Self

Return the exponential of a value.

Source

fn log(&self) -> Self

Return the natural logarithm of a value.

Source

fn norm_cdf(&self) -> Self

Return the standard normal cumulative distribution function of a value.

Source

fn inv_norm_cdf(&self) -> Self

Return the inverse standard normal cumulative distribution function of a value.

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.

Implementations on Foreign Types§

Source§

impl MathFuncs for f64

Source§

fn inv_norm_cdf(&self) -> Self

Source§

fn norm_cdf(&self) -> Self

Source§

fn exp(&self) -> Self

Source§

fn log(&self) -> Self

Implementors§