Numerix v0.1.0 Numerix.Special

Special mathematical functions that would make Euler proud.

Summary

Functions

Calculates the sigmoidal logistic function, a common “S” shape

Calculates the logit function (the inverse of the sigmoidal logistic function) for probability p (a number between 0 and 1)

Functions

logistic(p)

Specs

logistic(Numerix.Common.extended_number) :: float

Calculates the sigmoidal logistic function, a common “S” shape.

logit(p)

Specs

logit(float) :: Numerix.Common.extended_number | nil

Calculates the logit function (the inverse of the sigmoidal logistic function) for probability p (a number between 0 and 1).