LogSumExp: LogSumExp

Description Usage Arguments Value Examples

View source: R/utils.R

Description

LogSumExp() is a utility function to compute LogSumExp (aka SoftMax), using the shifting trick to increase numerical stability.

Usage

1

Arguments

x

a numeric object

Value

LogSumExp of x

Examples

1
LogSumExp(1:3)

XiaoqiLu/PhD-Thesis documentation built on March 1, 2021, 10:49 a.m.