3 #ifndef __median_avg_hpp
4 #define __median_avg_hpp
16 T medmean_avg(
const std::multiset<T> &values,
double reject)
19 if (values.size() == 0)
31 size_t first = (size_t)(0.5*reject*values.size());
32 size_t last = values.size() - first;
36 for (
typename std::multiset<T>::iterator it = values.begin();
49 return (N>0)?(avg_val/N):0;