- Timestamp:
- 11/12/11 01:26:48 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/DrsCalib.h
r12487 r12500 180 180 { 181 181 // Sign has not changed 182 fSum[abs ] += nperiods;183 fSum2[abs ] += nperiods*nperiods;182 fSum[abs0] += nperiods; 183 fSum2[abs0] += nperiods*nperiods; 184 184 continue; 185 185 } … … 187 187 const double p = v0==v1 ? 1 : v0/(v0-v1); 188 188 189 const double val = nperiods*p + (nperiods+1)*(1-p);190 191 fSum[abs ] += val;192 fSum2[abs ] += val;189 const double value = nperiods*p + (nperiods+1)*(1-p); 190 191 fSum[abs0] += value; 192 fSum2[abs0] += value*value; 193 193 194 194 nperiods++;
Note:
See TracChangeset
for help on using the changeset viewer.