Commit a07590a7 authored by Davis King's avatar Davis King

made unit test more robust

parent ed9bd637
......@@ -172,7 +172,7 @@ namespace
// non-matching pairs of projections.
const double corr_rot1_error = max(abs(compute_correlations(rm_zeros(L*rotate<0,1>(Ltrans)), rm_zeros(R*Rtrans))));
dlog << LINFO << "corr_rot1_error: "<< corr_rot1_error;
DLIB_TEST(std::abs(corr_rot1_error) < 1e-11);
DLIB_TEST(std::abs(corr_rot1_error) < 1e-10);
}
// Matching projection directions should be correlated with the amount of
// correlation indicated by the return value of cca().
......@@ -191,7 +191,7 @@ namespace
// non-matching pairs of projections.
const double corr_rot1_error = max(abs(compute_correlations(rm_zeros(L*rotate<0,1>(Ltrans)), rm_zeros(R*Rtrans))));
dlog << LINFO << "corr_rot1_error: "<< corr_rot1_error;
DLIB_TEST(std::abs(corr_rot1_error) < 1e-11);
DLIB_TEST(std::abs(corr_rot1_error) < 1e-10);
}
// Matching projection directions should be correlated with the amount of
// correlation indicated by the return value of cca().
......@@ -232,7 +232,7 @@ namespace
// non-matching pairs of projections.
const double corr_rot1_error = max(abs(compute_correlations(rm_zeros(L*rotate<0,1>(Ltrans)), rm_zeros(R*Rtrans))));
dlog << LINFO << "corr_rot1_error: "<< corr_rot1_error;
DLIB_TEST(std::abs(corr_rot1_error) < 1e-11);
DLIB_TEST(std::abs(corr_rot1_error) < 1e-10);
}
// Matching projection directions should be correlated with the amount of
// correlation indicated by the return value of cca().
......@@ -255,7 +255,7 @@ namespace
// non-matching pairs of projections.
const double corr_rot1_error = max(abs(compute_correlations(rm_zeros(L*rotate<0,1>(Ltrans)), rm_zeros(R*Rtrans))));
dlog << LINFO << "corr_rot1_error: "<< corr_rot1_error;
DLIB_TEST(std::abs(corr_rot1_error) < 1e-11);
DLIB_TEST(std::abs(corr_rot1_error) < 1e-10);
}
// Matching projection directions should be correlated with the amount of
// correlation indicated by the return value of cca().
......
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