Learn R Programming

mig (version 1.0)

.lsum: Log of sum of terms

Description

Computes the log of a sum of positive components, given on the log scale (lx), avoiding numerical overflow.

Usage

.lsum(lx, loff)

Value

a vector of log sums

Arguments

lx

vector or matrix of log of terms to add

loff

log of offset

Author

Marius Hofert, Martin Maechler (package copula)