Skip to content

Commit c2ee049

Browse files
author
mars
committed
added header guard and comment
1 parent 2e9c002 commit c2ee049

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

LibSource/SmoothFloat.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
#ifndef __SmoothFloat_hpp__
2+
#define __SmoothFloat_hpp__
13

24
/**
35
* Applies exponential smoothing to a float value.
46
* 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.
58
*/
69
class SmoothFloat {
710
private:
@@ -25,3 +28,4 @@ class SmoothFloat {
2528
}
2629
};
2730

31+
#endif /* __SmoothFloat_hpp__ */

0 commit comments

Comments
 (0)