From 89a336caae46df88dbe29eb08cf19c4d75d615fd Mon Sep 17 00:00:00 2001 From: Edu Meneses Date: Wed, 26 Feb 2025 09:56:25 -0500 Subject: [PATCH] change discretizer class name --- include/puara/utils/discretizer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/puara/utils/discretizer.h b/include/puara/utils/discretizer.h index 150874c..f59da67 100644 --- a/include/puara/utils/discretizer.h +++ b/include/puara/utils/discretizer.h @@ -4,14 +4,14 @@ namespace puara_gestures::utils { template -class ValueMonitor { +class Discretizer { private: T latestValue; bool firstValue; // Flag to track if it's the first value public: // Constructor - ValueMonitor() : firstValue(true) { + Discretizer() : firstValue(true) { // Initialize latestValue to a default value. Important to avoid // undefined behavior on the first comparison. Using the minimum // value for numeric types is usually a good choice. @@ -19,7 +19,7 @@ class ValueMonitor { } // Method to update the value and check for difference - bool updateAndCheck(const T& newValue) { + bool isNew(const T& newValue) { if (firstValue) { latestValue = newValue; firstValue = false;