Trait Beta

Source
pub trait Beta {
    // Required methods
    fn beta(&self, other: Self) -> Self;
    fn lbeta(&self, other: Self) -> Self;
    fn ibeta(&self, a: Self, b: Self) -> Self;
    fn ibeta_inv(&self, a: Self, b: Self) -> Self;
}
Expand description

Implementations of beta functions as a trait

Required Methods§

Source

fn beta(&self, other: Self) -> Self

Beta function

Source

fn lbeta(&self, other: Self) -> Self

Natural logarithm of the absolute value of the beta function

Source

fn ibeta(&self, a: Self, b: Self) -> Self

Regularized incomplete beta function

Source

fn ibeta_inv(&self, a: Self, b: Self) -> Self

Inverse of the regularized incomplete beta function

Finds x such that self is equal to x.ibeta(a, b)

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 Beta for f64

Source§

fn beta(&self, other: f64) -> f64

Source§

fn lbeta(&self, other: f64) -> f64

Source§

fn ibeta(&self, a: f64, b: f64) -> f64

Source§

fn ibeta_inv(&self, a: f64, b: f64) -> f64

Implementors§