Learn R Programming

misreport (version 0.1.0)

logAdd: Add two numbers

Description

The function logAdd adds together two numbers using their log to prevent under-/over-flow

Usage

logAdd(lx, ly)

Arguments

x
log of the first number.
y
log of the second number.

Value

Log of the sum of exp(x) and exp(y).