sumDexp: Sum log-likelihoods of i.i.d. exponential.

Description Usage Arguments Details Value See Also

View source: R/RcppExports.R

Description

This is an internal function that is only exposed on the public API for unit testing purposes.

Usage

1
sumDexp(x, rate)

Arguments

x

Vector of i.i.d. exponential random varibles

rate

parameter of the exponential distribution

Details

The sum of the log-likelihoods (log of the product of the likelihoods) for independent, identically-distributed, exponential random variables. Note: this Rcpp function is thread-safe, unlike the equivalent alternatives.

Value

log-likelihood of x

See Also

sum(dexp(x, rate, log=TRUE))


serrsBayes documentation built on June 28, 2021, 5:14 p.m.