 the elements in x, <span class="math display">\[ \text{product}(x) = \begin{cases}
\prod_{n=1}^N x_n &amp; \text{if} N &gt; 0 \\[4pt] 1 &amp; \text{if} N = 0
\end{cases} \]</span></p>
<!-- real; log_sum_exp; (real[] x); -->
<p></p>
<p><code>real</code> <strong><code>log_sum_exp</code></strong><code>(real[] x)</code><br>
The natural logarithm of the sum of the exponentials of the elements
in x, or <span class="math inline">\(-\infty\)</span> if the array is empty.</p>
</div>
<div id="sample-mean-variance-an