Commit d3555dab authored by jonas's avatar jonas
Browse files

well this is just sad

parent c2abf363
......@@ -58,7 +58,7 @@ attribute /= vector.size();
#define MEDIAN_PERF_OVER_VEC(vector, attribute) \
{ \
std::set<double> attribute_vector; \
std::multiset<double> attribute_vector; \
for(const Derived_Performance_Data& perf_data : vector){ \
attribute_vector.insert(perf_data.attribute.second); \
} \
......@@ -67,9 +67,9 @@ attribute /= vector.size();
++iter; \
} \
if((attribute_vector.size()/2)*2 == attribute_vector.size()){ \
attribute = *iter; \
}else{ \
attribute = (*iter + *(++iter))/2; \
}else{ \
attribute = *(++iter); \
} \
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment