R/log_sum_exp.R

Defines functions log_mean_exp

Documented in log_mean_exp

#' Numerically stable mean of logs
#' @keywords internal
log_mean_exp <- function(x) {
    return(matrixStats::logSumExp(x) - length(x))
}

Try the OncoBayes2 package in your browser

Any scripts or data that you put into this service are public.

OncoBayes2 documentation built on July 26, 2023, 5:30 p.m.