Update floor estimate based on current observation.
- Parameters
-
| level | Observed signal level |
Definition at line 76 of file noise_floor_tracker.cpp.hpp.
76 {
77
78
79
80
81
82
84
85
86 const float decayAlpha =
mConfig.decayRate;
88
90 mStats.inHysteresis =
false;
91
92
95 }
96 } else {
97
98
99
100 const float attackAlpha = 1.0f -
mConfig.attackRate;
102
104 mStats.inHysteresis =
false;
105
106
109 mStats.inHysteresis =
true;
110 }
111 }
112
113
115}
float mCurrentFloor
Current noise floor estimate.
NoiseFloorTrackerConfig mConfig
float mLastHysteresisFloor
Floor value at last hysteresis trigger Used to enforce hysteresis margin before allowing floor to ris...
u32 mBelowFloorCount
Count of consecutive samples below floor (for slow attack)
FL_DISABLE_WARNING_PUSH U constexpr common_type_t< T, U > min(T a, U b) FL_NOEXCEPT
constexpr common_type_t< T, U > max(T a, U b) FL_NOEXCEPT
References fl::max(), mBelowFloorCount, mConfig, mCurrentFloor, fl::min(), mLastHysteresisFloor, and mStats.
Referenced by update().