log_sum_exp: Numerically stable sum of logged numbers

Description Usage Arguments Value Functions

View source: R/probability.R

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 April 3, 2018, 11:05 a.m.