for(vector< vector<double> >::iterator measIt = meas->begin(); measIt != meas->end(); ++measIt)
computations[compid].err += pow( (*measIt)[ival] - computations[compid].val, 2 );
- computations[compid].err /= nmeas*(nmeas-1);
+ computations[compid].err /= nmeas-1;
computations[compid].err = sqrt( computations[compid].err );
}
for(vector< vector<int> >::iterator measIt = meas->begin(); measIt != meas->end(); ++measIt)
computations[compid].err += pow( (*measIt)[ival] - computations[compid].val, 2 );
- computations[compid].err /= nmeas*(nmeas-1);
- computations[compid].err = sqrt( computations[compid].err );
+ computations[compid].err /= nmeas-1;
+ computations[compid].err = sqrt( computations[compid].err );
}
template <typename obstype>