softmax: softmax

Description Usage Arguments Value Examples

View source: R/softmax.R

Description

softmax function

Usage

1

Arguments

par

vector

Value

num vector with components >= 0 and sum = 1

Examples

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

babsim.hospital documentation built on Nov. 11, 2021, 1:06 a.m.