6 #ifndef BASELINEPROCESSOR_H
7 #define BASELINEPROCESSOR_H
11 #include "Exceptions.h"
69 double ComputeStDev(
const TrIterator<T>& begin,
const TrIterator<T>& end,
double mean)
77 TrIterator<T> it=begin;
81 stdev2 += ::pow(tmpdiff,2.0);
87 return ::sqrt(stdev2 / (n - 1.0));
97 BaseLineProcResult ComputeBaseLine(
const TrIterator<T>& begin,
const TrIterator<T>& end)
99 double mean = ComputeMean<T>(begin, end);
100 double stdev = ComputeStDev<T>(begin, end, mean);
102 BaseLineProcResult res;