Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Return the log mixture density with specified mixing proportion and log densities.
\[ \mbox{log\_mix}(\theta, \lambda_1, \lambda_2) = \log \left( \theta \lambda_1 + (1 - \theta) \lambda_2 \right). \]
T_theta | type of mixing proportion - must be an arithmetic type |
T_lambda1 | type of first log density - must be an arithmetic type |
T_lambda2 | type of second log density - must be an arithmetic type |
[in] | theta | mixing proportion in [0, 1]. |
[in] | lambda1 | first log density. |
[in] | lambda2 | second log density. |
Definition at line 41 of file log_mix.hpp.