Home
last modified time | relevance | path

Searched refs:smooth_factor (Results 1 – 6 of 6) sorted by relevance

/external/adhd/cras/src/server/rust/src/
Drate_estimator.rs86 smooth_factor: f64, field
102 pub fn try_new(rate: u32, window_size: Duration, smooth_factor: f64) -> Result<Self> { in try_new()
103 if smooth_factor < 0.0 || smooth_factor > 1.0 { in try_new()
104 return Err(Error::InvalidSmoothFactor(smooth_factor)); in try_new()
114 smooth_factor, in try_new()
179 rate * (1.0 - self.smooth_factor) + self.estimated_rate * self.smooth_factor; in update_estimated_rate()
Drate_estimator_bindings.rs19 smooth_factor: libc::c_double, in rate_estimator_create()
28 match RateEstimator::try_new(rate, window, smooth_factor) { in rate_estimator_create()
/external/adhd/cras/src/server/
Dewma_power.c19 const static float smooth_factor = 0.095; variable
51 ewma->power = smooth_factor * power + in ewma_power_calculate()
52 (1 - smooth_factor) * ewma->power; in ewma_power_calculate()
77 ewma->power = smooth_factor * power + in ewma_power_calculate_area()
78 (1 - smooth_factor) * ewma->power; in ewma_power_calculate_area()
/external/adhd/cras/src/server/rust/src/headers/
Drate_estimator.h59 double smooth_factor);
/external/webrtc/modules/audio_processing/transient/
Dtransient_suppressor_impl.cc200 float smooth_factor = using_reference_ ? 0.6 : 0.1; in Suppress() local
203 : smooth_factor * detector_smoothed_ + in Suppress()
204 (1 - smooth_factor) * detector_result; in Suppress()
/external/adhd/cras/src/tests/
Diodev_unittest.cc2657 double smooth_factor) { in rate_estimator_create() argument