mexpit: multi-expit (numerical overflow dealt with)

View source: R/utils.R

mexpitR Documentation

multi-expit (numerical overflow dealt with)

Description

multi-expit (numerical overflow dealt with)

Usage

mexpit(v)

Arguments

v

a vector of length K

Value

a vector of probabilities of length K; sums to one

Examples

sigmoid <- function(v) mexpit(c(0,v))[2]
mexpit(c(1,0,0))

zhenkewu/lotR documentation built on April 24, 2022, 2:36 a.m.