logsumexp: Calculate the log-sum-exponential (LSE) of a vector

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Calculate the exponent of a vector (offset by the max), sum the elements, calculate the log, remove the offset.

Usage

1

Arguments

x

numeric vector

Value

The LSE.

Examples

1
  logsumexp(1:10)

weecology/LDATS documentation built on March 28, 2020, 11:20 a.m.