softmax: Compute the softmax function of a vector

Description Usage Arguments Value

View source: R/waic.R

Description

The softmax of a vector of variables x_i is

s_i = \frac{\exp(x_i)}{∑_{j=1}^{N} \exp(x_j)}

Usage

1

Arguments

x

Vector of values for which to compute softmax

Value

Vector of softmax values


JGCRI/gcamland documentation built on Oct. 6, 2020, 5:30 p.m.