We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e9c002 commit c2ee049Copy full SHA for c2ee049
1 file changed
LibSource/SmoothFloat.hpp
@@ -1,7 +1,10 @@
1
+#ifndef __SmoothFloat_hpp__
2
+#define __SmoothFloat_hpp__
3
4
/**
5
* Applies exponential smoothing to a float value.
6
* y(n) = lambda*y(n-1) + (1.0-lambda)*y(n)
7
+ * Smoothing is applied when the value is written to, not when it is read.
8
*/
9
class SmoothFloat {
10
private:
@@ -25,3 +28,4 @@ class SmoothFloat {
25
28
}
26
29
};
27
30
31
+#endif /* __SmoothFloat_hpp__ */
0 commit comments