Skip to main content

Beta

Trait Beta 

Source
pub trait Beta {
    // Required methods
    fn inc_beta(self, p: Self, q: Self, ln_beta: Self) -> Self;
    fn inv_inc_beta(self, p: Self, q: Self, ln_beta: Self) -> Self;
    fn ln_beta(self, other: Self) -> Self;
}
Expand description

Beta functions.

Required Methods§

Source

fn inc_beta(self, p: Self, q: Self, ln_beta: Self) -> Self

Compute the regularized incomplete beta function.

ln_beta should be precomputed as p.ln_beta(q).

The implementation is based on a C implementation by John Burkardt. The original algorithm was published in Applied Statistics and is known as Algorithm AS 63 and Algorithm AS 109.

Source

fn inv_inc_beta(self, p: Self, q: Self, ln_beta: Self) -> Self

Compute the inverse of the regularized incomplete beta function.

ln_beta should be precomputed as p.ln_beta(q).

The implementation is based on a C implementation by John Burkardt. The original algorithm was published in Applied Statistics and is known as Algorithm AS 64 and Algorithm AS 109.

Source

fn ln_beta(self, other: Self) -> Self

Compute the natural logarithm of the beta function.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Beta for f32

Source§

fn inc_beta(self, p: Self, q: Self, ln_beta: Self) -> Self

Source§

fn inv_inc_beta(self, p: Self, q: Self, ln_beta: Self) -> Self

Source§

fn ln_beta(self, other: Self) -> Self

Source§

impl Beta for f64

Source§

fn inc_beta(self, p: Self, q: Self, ln_beta: Self) -> Self

Source§

fn inv_inc_beta(self, p: Self, q: Self, ln_beta: Self) -> Self

Source§

fn ln_beta(self, other: Self) -> Self

Implementors§