}
double obs_phi2::phi2Sus(vector <double> *preCalculated, vector<double> *excludedMeas, int nmeas, void *para) {
- return (( (*preCalculated)[1] - pow((*excludedMeas)[0], 2) )
- - pow( (*preCalculated)[0] - (*excludedMeas)[0], 2 ))
- * *(int*)para
- / (nmeas-1);
+ return (( (*preCalculated)[1] - pow((*excludedMeas)[0], 2) ) / (nmeas-1)
+ - pow( ( (*preCalculated)[0] - (*excludedMeas)[0] ) / (nmeas-1), 2 ))
+ * *(int*)para;
}
#endif
}
double obs_plaq::plaqSus(vector <double> *preCalculated, vector<double> *excludedMeas, int nmeas, void *para) {
- return (( (*preCalculated)[1] - pow((*excludedMeas)[0], 2) )
- - pow( (*preCalculated)[0] - (*excludedMeas)[0], 2 ))
- * *(int*)para * 6
- / (nmeas-1);
+ return (( (*preCalculated)[1] - pow((*excludedMeas)[0], 2) ) / (nmeas-1)
+ - pow( ( (*preCalculated)[0] - (*excludedMeas)[0] ) / (nmeas-1), 2 ))
+ * *(int*)para * 6;
}
#endif