Searched refs:smooth_factor (Results 1 – 6 of 6) sorted by relevance
86 smooth_factor: f64, field102 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()
19 smooth_factor: libc::c_double, in rate_estimator_create()28 match RateEstimator::try_new(rate, window, smooth_factor) { in rate_estimator_create()
19 const static float smooth_factor = 0.095; variable51 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()
59 double smooth_factor);
200 float smooth_factor = using_reference_ ? 0.6 : 0.1; in Suppress() local203 : smooth_factor * detector_smoothed_ + in Suppress()204 (1 - smooth_factor) * detector_result; in Suppress()
2657 double smooth_factor) { in rate_estimator_create() argument