Documentation
¶
Overview ¶
Special math functions not included in "math" package.
Index ¶
- Constants
- Variables
- func ArithMean(data *Vector) float64
- func B(x float64, y float64) float64
- func BetaIncReg(α, β, x float64) float64
- func BinomCoeff(n, k int64) float64
- func Bn(n int64) float64
- func Choose(n int64, i int64) int64
- func FChoose(n, k float64) float64
- func Fact(n int64) float64
- func FactInt(n int64) int64
- func GammaP(p int, x float64) (r float64)
- func GammaPRatio(p int, x, y float64) (r float64)
- func GenMean(data *Vector, p float64) float64
- func GeomMean(data *Vector) float64
- func H(n int64, m float64) float64
- func H2(n int64, q, s float64) float64
- func HarmonicMean(data *Vector) float64
- func IB(a, b, x float64) float64
- func IGam(a, x float64) float64
- func IGamC(a, x float64) float64
- func IΓ(s, x float64) float64
- func IΓint(s int64, x float64) float64
- func Iγ(s, x float64) float64
- func Iγint(s int64, x float64) float64
- func LnB(x float64, y float64) float64
- func LnBeta(a, b float64) float64
- func LnBinomCoeff(n, k float64) float64
- func LnChoose(n int64, i int64) float64
- func LnFChoose(n, k float64) float64
- func LnFact(nn float64) float64
- func LnFactBig(n float64) float64
- func LnGammaP(p int, x float64) (r float64)
- func LnGammaPRatio(p int, x, y float64) (r float64)
- func LnPartialFact(n, m float64) float64
- func LnΓ(x float64) (res float64)
- func PartialFactInt(n int64, m int64) int64
- func RiemannZeta(s float64) float64
- func Round(x float64) float64
- func Γr(s, x float64) float64
- type Matrix
- type Vector
Constants ¶
const ( MACHEP float64 = 1.11022302462515654042e-16 MAXLOG float64 = 7.08396418532264106224e2 )
Variables ¶
var GammaF = math.Gamma
var LnΓp = LnGammaP
var LnΓpRatio = LnGammaPRatio
var Γ = math.Gamma
Functions ¶
func BetaIncReg ¶
BetaIncReg returns the Regularized incomplete Beta function.
func BinomCoeff ¶
func FChoose ¶
FChoose returns generalized binomial coefficient i.e., also defined for non-integer n (integer k).
func GammaPRatio ¶
func IΓ ¶
Upper incomplete Gamma function // did not pass test for IΓ(1.45896, 3.315) == 0.0706743424609074192334
func LnBeta ¶
LnBeta returns the value of the log beta function. Translation of the Fortran code by W. Fullerton of Los Alamos Scientific Laboratory.
func LnBinomCoeff ¶
func LnChoose ¶
LnChoose returns the natural logarithm of the binomial coefficient for integer n and k.
func LnFChoose ¶
LnFChoose returns the natural logarithm of the generalized binomial coefficient i.e., also defined for non-integer n (integer k).
func LnPartialFact ¶
LnPartialFact returns LnFact(n)-LnFact(m)
func PartialFactInt ¶
PartialFactInt returns Fact(n)/Fact(m)