Commit 96a2a7b9 authored by Davis King's avatar Davis King

Minor change to avoid a compile time error in gcc-3.3

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403644
parent 720fb2fc
...@@ -343,7 +343,8 @@ namespace dlib ...@@ -343,7 +343,8 @@ namespace dlib
// Make a kcentroid and find out what the gap is at the current gamma. Try to pick a reasonable // Make a kcentroid and find out what the gap is at the current gamma. Try to pick a reasonable
// tolerance. // tolerance.
const double tolerance = std::min(gamma*0.01, 0.01); const double tolerance = std::min(gamma*0.01, 0.01);
kcentroid<kernel_type> kc(kernel_type(gamma), tolerance, num_sv); const kernel_type kern(gamma);
kcentroid<kernel_type> kc(kern, tolerance, num_sv);
scalar_type temp = centroid_gap(kc, samples, labels); scalar_type temp = centroid_gap(kc, samples, labels);
if (verbose) if (verbose)
......
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