logsum: logsum

View source: R/claudia.R

logsumR Documentation

logsum

Description

Internal function, logsum

Usage

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)

Claudia Giambartolomei


chr1swallace/coloc documentation built on April 13, 2024, 1:05 a.m.