<code>soft_z[n]</code>
can be converted back to a normalized simplex using the softmax
function (see the functions reference manual), either externally or
within the model’s generated quantities block.</p>
</div>
<div id="generalizing-soft-k-means" class="section level3">
<h3 class="unnumbered" number="">Generalizing Soft <span class="math inline">\(K\)</span>-Means</h3>
<p>The multivariate normal distribution with unit covariance matrix
produces a log probability density proportional to Euclidean distanc