infergo: Index | Files

package mathx

import ""

Package mathx provides auxiliary elemental functions, ubiquitously useful but not found in package math.


Package Files


func LogGamma Uses

func LogGamma(x float64) float64

LogGamma is used in the log-density of the Gamma and Beta distributions.

func LogSumExp Uses

func LogSumExp(x, y float64) float64

LogSumExp computes log(exp(x) + exp(y)) robustly.

func Sigm Uses

func Sigm(x float64) float64

Sigmoid computes the sigmoid function 1/(1 + exp(-x)).

Package mathx imports 2 packages (graph) and is imported by 2 packages. Updated 2021-01-27. Refresh now. Tools for package owners.