powered by
"logsum" takes a vector of logged probabilities (neagtive values) and returns its sum.
"logsum"
logsum(x)
returns a single numeric value representing the logged sum of the values in the input vector.
a numeric vector of logged probabilities.
Shaun Wilkinson
This is a simple compiled function that exponentiates the values in the input vector, finds their sum, and returns the log of that value.