log_mix: Log mixture of two probabilities

View source: R/math_functions.R

log_mixR Documentation

Log mixture of two probabilities

Description

Log mixture of two probabilities

Usage

log_mix(theta, lp1, lp2)

Arguments

theta

Mixing proportion (between 0 and 1).

lp1

Log-probability of the first component.

lp2

Log-probability of the second component.

Value

The log-probability of the mixture.


BayesRTMB documentation built on Nov. 24, 2026, 9:06 a.m.