Commit 51f45aa8 authored by Davis King's avatar Davis King

Fixed a bug in the min and max calculation.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402358
parent 66b7719f
......@@ -37,8 +37,8 @@ namespace dlib
sum_sqr = 0;
n = 0;
maximum_n = std::numeric_limits<T>::max();
min_value = std::numeric_limits<T>::max();
max_value = std::numeric_limits<T>::min();
min_value = std::numeric_limits<T>::infinity();
max_value = -std::numeric_limits<T>::infinity();
}
void set_max_n (
......
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