logdiff: logdiff

View source: R/claudia.R

logdiffR Documentation

logdiff

Description

Internal function, logdiff

Usage

logdiff(x, y)

Arguments

x

numeric

y

numeric

Details

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

Value

max(x) + log(exp(x - max(x,y)) - exp(y-max(x,y)))

Author(s)

Chris Wallace


chr1swallace/coloc documentation built on March 27, 2024, 1:35 a.m.