mathx

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogDSigm added in v0.10.1

func LogDSigm(x float64) float64

LogDSigm is log d Sigm(x) / dx, used for computing log probability in the presence of sigmoid-transformed variables.

func LogGamma

func LogGamma(x float64) float64

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

func LogSumExp

func LogSumExp(x, y float64) float64

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

func Sigm

func Sigm(x float64) float64

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL