softmax {babsim.hospital}R Documentation

softmax

Description

softmax function

Usage

softmax(par)

Arguments

par

vector

Value

num vector with components >= 0 and sum = 1

Examples


p <- c(0.6, 0.3, 0.1)
softmax(p)

[Package babsim.hospital version 11.8.4 Index]