">(</span><span class="n">cov</span><span class="p">(</span><span class="n">Xk</span><span class="o">&#39;</span><span class="p">));</span>
    <span class="k">end</span>
<span class="k">end</span>

<span class="c">% gmm with kmeans init</span>
<span class="p">[</span><span class="n">means</span><span class="p">,</span><span class="n">sigmas</span><span class="p">,</span><span class="n">weights</span><span class="p">,</span><span class="n">ll</span><span class="p">,</span><span class="n">posteriors</span><s