/div><div class="line"></div><div class="line">  sum = 0.0;</div><div class="line"></div><div class="line">  <span class="keywordflow">for</span> (i = 0; i &lt; xsamples; i ++) {</div><div class="line"></div><div class="line">    local_parameters = value_at(state, data-&gt;x[i]);</div><div class="line"></div><div class="line">    dv = data-&gt;sy[i] - local_parameters[0];</div><div class="line"></div><div class="line">    sum += dv*dv;</div><div class="line">  }</div><div class="line"></div><div class="line