lorad_calc_log_sum: Calculate a sum on log scale

View source: R/lorad-calc-log-sum.R

lorad_calc_log_sumR Documentation

Calculate a sum on log scale

Description

Calculates the (natural) log of a sum without leaving the log scale by factoring out the largest element.

Usage

lorad_calc_log_sum(logx)

Arguments

logx

Numeric vector in which elements are on log scale

Value

The log of the sum of the (exponentiated) elements supplied in logx


lorad documentation built on May 29, 2024, 1:30 a.m.