Fixed a bug in the min and max calculation.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402358
This commit is contained in:
Davis King 2008-06-24 01:11:02 +00:00
parent 66b7719fe6
commit 51f45aa8ed
1 changed files with 2 additions and 2 deletions

View File

@ -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 (