softmax: Compute soft-max

Description Usage Arguments Examples

Description

softmax returns the soft maximum of a collection of reals.

Usage

1
softmax(x, a = 100)

Arguments

x

input

a

scaling factor

Examples

1
2
3
4
set.seed(12345)
n <- 10
x <- rnorm(n)
softmax(x)

splitFeas documentation built on May 2, 2019, 2:52 p.m.

Related to softmax in splitFeas...