logsum: logsum

Description Usage Arguments Details Value Author(s)

View source: R/extra_functions.R

Description

Internal function, logsum

Usage

1
logsum(x)

Arguments

x

numeric vector

Details

This function calculates the log of the sum of the exponentiated logs taking out the max, i.e. insuring that the sum is not Inf

Value

max(x) + log(sum(exp(x - max(x))))

Author(s)

Chris Wallace


annahutch/corrcoverage documentation built on Nov. 30, 2021, 5:35 p.m.