Trait extra_math::gamma::Gamma

source ·
pub trait Gamma: Float {
    // Required methods
    fn gamma(self) -> Self;
    fn lower_gamma_regularized(self, x: Self) -> Self;

    // Provided methods
    fn ln_gamma(self) -> Self { ... }
    fn upper_gamma_regularized(self, x: Self) -> Self { ... }
    fn upper_gamma_incomplete(self, x: Self) -> Self { ... }
    fn lower_gamma_incomplete(self, x: Self) -> Self { ... }
}
Expand description

Trait implementing the gamma functions

Required Methods§

source

fn gamma(self) -> Self

Calculates the Gamma function.

source

fn lower_gamma_regularized(self, x: Self) -> Self

Returns the lower incomplete regularized gamma function P(a, x)

Provided Methods§

source

fn ln_gamma(self) -> Self

Calculates the logarithm of the Gamma function.

source

fn upper_gamma_regularized(self, x: Self) -> Self

Returns the upper incomplete regularized gamma function Q(a, x)

source

fn upper_gamma_incomplete(self, x: Self) -> Self

Returns the upper incomplete gamma function Q(a, x)

source

fn lower_gamma_incomplete(self, x: Self) -> Self

Returns the lower incomplete gamma function P(a, x)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Gamma for f32

source§

fn gamma(self) -> Self

source§

fn lower_gamma_regularized(self, x: Self) -> Self

source§

fn ln_gamma(self) -> Self

source§

fn upper_gamma_regularized(self, x: Self) -> Self

source§

fn upper_gamma_incomplete(self, x: Self) -> Self

source§

fn lower_gamma_incomplete(self, x: Self) -> Self

source§

impl Gamma for f64

source§

fn ln_gamma(self) -> Self

source§

fn gamma(self) -> Self

source§

fn lower_gamma_regularized(self, x: Self) -> Self

Implementors§