Learn R Programming

ZVCV (version 2.1.2)

logsumexp: 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)

Value

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

Arguments

x

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

See Also

See ZVCV for more package details.