Trait special::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.

The code 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.

The code 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.

Object Safety§

This trait is not object safe.

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§