Learn R Programming

splitFeas (version 0.1.0)

softmax: Compute soft-max

Description

softmax returns the soft maximum of a collection of reals.

Usage

softmax(x, a = 100)

Arguments

x

input

a

scaling factor

Examples

Run this code
# NOT RUN {
set.seed(12345)
n <- 10
x <- rnorm(n)
softmax(x)
# }

Run the code above in your browser using DataLab