ex="-1"></a>}</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<p>The single scalar parameter <code>y</code> is declared as lying in the interval <code>(-1, 1)</code>. The total log probability is incremented with the joint log probability of all parameters, i.e., <span class="math inline">\(\log \mathsf{Triangle}(y \mid -1, 1)\)</span>. This value is coded in Stan as <code>log1m(abs(y))</code>. The function <code>log1m</code> is defined so that