[−][src]Trait mathru::special::beta::Beta
Provides beta, also called the Euler integral of the first kind related functions
Required methods
pub fn beta(self, y: Self) -> Self
[src]
Beta function
\Beta(x,y) = \int_0^1 t^{x-1}(1-t)^{y-1}\,dt
Fore more information: Wikipedia Beta function
Arguments
self
> 0.0y
> 0.0
Panics
Panics if the parameter conditions are not fulfilled.
Example
use mathru::special::beta::Beta; let x: f64 = 0.3_f64; let y: f64 = 0.6_f64; let beta: f64 = x.beta(y);
pub fn beta_inc(self, a: Self, b: Self) -> Self
[src]
Incomplete beta function
\Beta(x;\,a,b) = \int_0^x t^{a-1}\,(1-t)^{b-1}\,dt
Fore more information: Wikipedia Beta function
Arguments
self
a
> 0.0b
> 0.0
Panics
Panics if the parameter conditions are not fulfilled.
Example
use mathru::special::beta::Beta; let x: f64 = 0.3_f64; let a: f64 = 0.6_f64; let b: f64 = 0.7_f64; let beta: f64 = x.beta_inc(a, b);
pub fn beta_inc_reg(self, a: Self, b: Self) -> Self
[src]
Incomplete regularized beta function
I_x(a,b) = \frac{\Beta(x;\,a,b)}{\Beta(a,b)}
Fore more information: Wikipedia Beta function
Arguments
- 0.0 <
self
< 1.0, a
> 0.0b
> 0.0
Panics
Panics if the parameter conditions are not fulfilled.
Example
use mathru::special::beta::Beta; let a: f64 = 0.3_f64; let b: f64 = 0.6_f64; let x: f64 = 0.2_f64; let beta: f64 = x.beta_inc_reg(a, b);
Implementations on Foreign Types
impl Beta for f32
[src]
pub fn beta(self, y: Self) -> Self
[src]
pub fn beta_inc(self, a: Self, b: Self) -> Self
[src]
pub fn beta_inc_reg(self, a: Self, b: Self) -> Self
[src]
The code from the following C code was ported to Rust C implementation
impl Beta for f64
[src]
pub fn beta(self, y: Self) -> Self
[src]
pub fn beta_inc(self, a: Self, b: Self) -> Self
[src]
pub fn beta_inc_reg(self, a: Self, b: Self) -> Self
[src]
The code from the following C code was ported to Rust C implementation