ds=true(1,size(x,2));
        <span class="keyword">if</span> opts.display
            disp(<span class="string">'Max. number of iterations has been reached.'</span>);
        <span class="keyword">end</span>
    <span class="keyword">elseif</span> ~opts.use_std
        <span class="keyword">if</span> mod(iter,2)==1
            test = [test' log((sum(gather(x)-x_,1).^2)./sum(x_.^2,1))'/2]';
            <span class="keyword">if</span> size(test,1)&gt;opts.sample
                test=test(2:end,:);
          