Learn R Programming

RapidoPGS (version 2.3.1)

logsum: Helper function to sum logs without loss of precision

Description

Sums logs without loss of precision This function is verbatim of its namesake in cupcake package (github.com/ollyburren/cupcake/)

Usage

logsum(x)

Value

a scalar

Arguments

x

a vector of logs to sum

Author

Chris Wallace