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/doubletree documentation built on Oct. 21, 2023, 7:04 a.m.