span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] 0.7735551</span>
<span class="r-in"><span></span></span>
<span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># calculate entropy directly from MPM</span></span></span>
<span class="r-in"><span><span class="fu">entropy_d</span><span class="op">(</span>lx <span class="op">=</span> <span class="va">mpm1</span><span class="op">$</span><span class="va">matU</span>, mx <span class=