Skip to contents

Log-sum-exp function

Usage

log_sum_exp(x, y = NULL)

Arguments

x

A numeric vector or scalar.

y

An optional numeric scalar.

Value

The log of the sum of the exponentials.