- for(typename vector< vector<meastype> >::iterator removedIt = measurements.begin(); removedIt != measurements.end(); ++removedIt, imeas++)
- {
- vector<meastype> removed = *removedIt;
-
- *removedIt = measurements.back();
- measurements.pop_back();
-
- manymeans[imeas] = func(&measurements, para);
- jackres.val += manymeans[imeas];
-
- measurements.push_back( *removedIt );
- *removedIt = removed;
- }
+ for(typename vector< vector<meastype> >::iterator removedIt = measurements.begin(); removedIt != measurements.end(); ++removedIt, imeas++) {
+ manymeans[imeas] = measFunc(&preCalculated, &(*removedIt), measurements.size(), para);
+ jackres.val += manymeans[imeas];
+ }