From 24fcd5c5954ef45cd8fb2882e943c630cd44da4c Mon Sep 17 00:00:00 2001 From: Davis King Date: Sun, 30 May 2010 19:42:38 +0000 Subject: [PATCH] Made the sample_pair have a default distance of infinity instead of the max floating point value. --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403658 --- dlib/manifold_regularization/sample_pair.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/manifold_regularization/sample_pair.h b/dlib/manifold_regularization/sample_pair.h index b4233223f..1a03bf9df 100644 --- a/dlib/manifold_regularization/sample_pair.h +++ b/dlib/manifold_regularization/sample_pair.h @@ -20,7 +20,7 @@ namespace dlib _index1(0), _index2(0) { - _distance = std::numeric_limits::max(); + _distance = std::numeric_limits::infinity(); } sample_pair (