Changeset 7778 for trunk/projects
- Timestamp:
- 09/30/11 18:03:43 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/projects/slim-curve/src/main/c/EcfSingle.c
r7719 r7778 898 898 } 899 899 900 //TODO ARG c/b special case if dparam all zeroes; don't have to recalc alpha & beta901 900 /* Did the trial succeed? */ 902 901 for (j=0, l=0; l<nparam; l++) … … 1391 1390 yfit[q] += param[0]; 1392 1391 dy[q] = y[q] - yfit[q]; 1393 weight = (yfit[q] > 1 ? 1.0f / yfit[ i] : 1.0f);1392 weight = (yfit[q] > 1 ? 1.0f / yfit[q] : 1.0f); 1394 1393 alpha_weight[q] = weight * y[q] / yfit[q]; 1395 1394 beta_weight[q] = dy[q] * weight;
Note: See TracChangeset
for help on using the changeset viewer.