log_sum_exp: Numerically stable sum of logged numbers

Description Usage Arguments Value Functions

Description

If any element of x is Inf, returns Inf. If all elements are -Inf, returns all -Inf.

Usage

1
2
3

Arguments

x

a numeric vector of logged values.

Value

log of the sum/mean of the exponentiated entries in x.

Functions


kleinschmidt/daver documentation built on May 20, 2019, 12:33 p.m.