Changeset 7778 for trunk/projects


Ignore:
Timestamp:
09/30/11 18:03:43 (8 years ago)
Author:
aivar
Message:

Fixed bug in NOISE_MLE case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/slim-curve/src/main/c/EcfSingle.c

    r7719 r7778  
    898898        } 
    899899 
    900 //TODO ARG c/b special case if dparam all zeroes; don't have to recalc alpha & beta 
    901900        /* Did the trial succeed? */ 
    902901        for (j=0, l=0; l<nparam; l++) 
     
    13911390                                yfit[q] += param[0]; 
    13921391                                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); 
    13941393                                alpha_weight[q] = weight * y[q] / yfit[q]; 
    13951394                                beta_weight[q] = dy[q] * weight; 
Note: See TracChangeset for help on using the changeset viewer.