logsum {dst}R Documentation

Adding small probabilities

Description

Adding small probabilities

Usage

logsum(l1, l2)

Arguments

l1

log probabilities

l2

log probabilities

Value

sum of probabilities exp(l1)+exp(l2)

Author(s)

Peiyuan Zhu

Examples

# sum of two 1e-5
exp(logsum(log(1e-5),log(1e-5)))

[Package dst version 1.7.0 Index]