ExBoost v0.1.6 Exboost.Math View Source

Link to this section Summary

Functions

Provides the regularized lower incomplete gamma function

Implements the inverse of the regularized incomplete gamma function

Provides the gamma function

Provides the non-regularized lower incomplete gamma function

Link to this section Functions

Link to this function gamma_p(a, z) View Source
gamma_p(a :: float(), z :: float()) :: float()

Provides the regularized lower incomplete gamma function.

Examples

iex> Exboost.Math.gamma_p(0.234,2.3)
0.9891753004794075

iex> Exboost.Math.gamma_p(5.0,0.0)
0.0
Link to this function gamma_p_inv(a, p) View Source
gamma_p_inv(a :: float(), p :: float()) :: float()

Implements the inverse of the regularized incomplete gamma function.

Examples:

iex> Exboost.Math.gamma_p_inv(0.234,0.9891753004794075) |> Float.round(6)
2.3

iex> Exboost.Math.gamma_p_inv(5.0,0.0)
0.0
Link to this function tgamma(z) View Source
tgamma(z :: float()) :: float()

Provides the gamma function.

Examples

iex> Exboost.Math.tgamma(1.5)
0.886226925452758

iex> Exboost.Math.tgamma(3.0)
2.0
Link to this function tgamma_lower(a, z) View Source
tgamma_lower(a :: float(), z :: float()) :: float()

Provides the non-regularized lower incomplete gamma function.

Examples

iex> Exboost.Math.tgamma_lower(0.234,2.3)
3.8461476736289315

iex> Exboost.Math.tgamma_lower(5.0,0.0)
0.0