n>
    <span class="k">end</span>
<span class="k">end</span>

<span class="c">% Evaluate the residuals</span>
<span class="n">RE_results</span> <span class="p">=</span> <span class="n">evaluateResiduals</span><span class="p">(</span><span class="n">SA_results</span><span class="p">,</span> <span class="n">RG_results</span><span class="p">,</span> <span class="n">data_resampled</span><span class="p">);</span>  <span class="c">% Evaluate the residual generator bank</span>
</pre></div>
</div>
<p>The residual t