logsumexp: Stable log sum of exponential calculations

View source: R/logsumexp.R

logsumexpR Documentation

Stable log sum of exponential calculations

Description

The function logsumexp is used for stable computation of log(sum(exp(x))), which is useful when summing weights for example.

Usage

logsumexp(x)

Arguments

x

The values for which you want to compute log(sum(exp(x)))

Value

The stable result of log(sum(exp(x)))

See Also

See ZVCV for more package details.


ZVCV documentation built on Nov. 2, 2022, 5:17 p.m.

Related to logsumexp in ZVCV...