void PerformanceEvaluator::CalculateRM(VecPtr vec) {
  CalculateAverage(vec);
  transform(vec->begin(),vec->end(),vec->begin(),[](const double& x) {return sqrt(x);});
}
void PerformanceEvaluator::CalculateAverage(VecPtr vec) {
  transform(vec->begin(),vec->end(),vec->begin(),[this](const double& x) {return x/(1.0*_runCount);});//multiply by 1.0 to make it a double
}