logsum | R Documentation |
"logsum"
takes a vector of logged probabilities (neagtive values)
and returns its sum.
logsum(x)
x |
a numeric vector of logged probabilities. |
This is a simple compiled function that exponentiates the values in the input vector, finds their sum, and returns the log of that value.
returns a single numeric value representing the logged sum of the values in the input vector.
Shaun Wilkinson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.