82 void update(
float timedomainLevel,
float frequencydomainLevel = -1.0f)
FL_NOEXCEPT;
float normalize(float level) const FL_NOEXCEPT
Normalize signal by removing noise floor.
bool isAboveFloor(float level) const FL_NOEXCEPT
Check if signal is above noise floor + margin.
float mCurrentFloor
Current noise floor estimate.
void update(float timedomainLevel, float frequencydomainLevel=-1.0f) FL_NOEXCEPT
Update noise floor estimate with new observation.
void updateFloor(float level) FL_NOEXCEPT
Update floor estimate based on current observation.
NoiseFloorTrackerConfig mConfig
void configure(const NoiseFloorTrackerConfig &config) FL_NOEXCEPT
Configure the noise floor tracker.
float getFloor() const FL_NOEXCEPT
Get current noise floor estimate.
static constexpr u32 BELOW_FLOOR_THRESHOLD
Threshold for considering signal "consistently low".
void reset() FL_NOEXCEPT
Reset noise floor to initial state.
float mLastHysteresisFloor
Floor value at last hysteresis trigger Used to enforce hysteresis margin before allowing floor to ris...
float combineDomains(float timeLevel, float freqLevel) const FL_NOEXCEPT
Calculate combined metric from time and frequency domains.
~NoiseFloorTracker() FL_NOEXCEPT
const Stats & getStats() const FL_NOEXCEPT
u32 mBelowFloorCount
Count of consecutive samples below floor (for slow attack)
NoiseFloorTracker() FL_NOEXCEPT
Get current statistics (for monitoring/debugging)
float decayRate
Decay rate for noise floor (0.0-1.0) Higher = slower decay (more stable, less responsive) Lower = fas...
float hysteresisMargin
Hysteresis margin (prevents noise chasing) Floor must drop by this amount before it can rise again.
bool enabled
Enable noise floor tracking.
float maxFloor
Maximum floor value (prevents floor from growing unbounded)
float minFloor
Minimum floor value (prevents floor from going to zero)
float attackRate
Attack rate for noise floor (0.0-1.0) How quickly the floor rises when signal is consistently low.
float crossDomainWeight
Cross-domain calibration weight (0.0-1.0) Blends time-domain RMS and frequency-domain energy for floo...
Configuration for noise floor tracking.
Base definition for an LED controller.