nsform data</span>
        tr = (sel_data-offset)/m(1);

        <span class="comment">% Apply anscrombe transform</span>
        antr = 2*sqrt(tr+3/8);

        <span class="comment">% Calculate mean and std</span>
        s = std(antr,0,2);
        mn = mean(antr,2);

        <span class="comment">% Determine sum of square residuals</span>
        r = norm(s-1).^2;

        <span class="keyword">if</span> display_progress &amp;&amp; mod(c,10) == 0
            hold(ax,<span class="string">'off'</span>);
  