">'localCPDs'</span>, localCPD);
</pre><h2>fit using dgmTrain<a name="6"></a></h2><pre class="codeinput">fprintf(<span class="string">'DGM\n'</span>);
mixGaussDgm = dgmTrain(mixGaussDgm, <span class="string">'localev'</span>, localEv, <span class="string">'verbose'</span>, true);
</pre><pre class="codeoutput">DGM
warning: dgmTrain is permuting data columns
</pre><h2>compare results<a name="7"></a></h2><pre class="codeinput">assert(approxeq(mixGaussDgm.localCPDs{1}.mu, mixGauss.cpd.mu));
assert(approxeq(mixG