test(mapping): pin golden Holt sequence to explicit params so smoothing-default tuning doesn't break it

This commit is contained in:
kinect-bot committed 2026-11-26 22:15:04 -05:00
1 parent fd1b0f086f
commit a77508a0fb
1 file changed
+5 -1
+5 -1
View File
@@ -152,7 +152,11 @@ TEST(mapping, OutOfRangeLandmarksAndDepthAreClamped) {
}
TEST(mapping, HoltFilterMatchesPrecomputedGoldenSequence) {
nui::mapping::HoltSmoothingFilter filter;
// Explicit params the golden sequence was computed with, so tuning the
// SmoothingParameters defaults (for cursor stability) does not break this
// test of the filter math.
nui::mapping::HoltSmoothingFilter filter(
nui::mapping::SmoothingParameters{0.6f, 0.4f, 0.4f, 0.04f, 0.07f});
const std::array<float, 5> raw_x{{0.0f, 0.02f, 0.04f, 0.10f, 0.12f}};
const std::array<float, 5> expected_x{{
0.000000000f,