Fix the test

release/4.3a0
Fan Jiang 2022-04-08 16:30:40 -04:00 committed by GitHub
parent 215682e64f
commit 7a47815e0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -668,7 +668,7 @@ TEST(NoiseModel, robustNoiseL2WithDeadZone)
for (int i = 0; i < 5; i++) {
Vector3 error = Vector3(i, 0, 0);
DOUBLES_EQUAL(std::fmax(0, i - dead_zone_size) * i,
robust->squaredMahalanobisDistance(error), 1e-8);
robust->loss(robust->squaredMahalanobisDistance(error)), 1e-8);
}
}