Searched refs:modified_trend (Results 1 – 1 of 1) sorted by relevance
276 const double modified_trend = in Detect() local278 prev_modified_trend_ = modified_trend; in Detect()279 BWE_TEST_LOGGING_PLOT(1, "T", now_ms, modified_trend); in Detect()281 if (modified_trend > threshold_) { in Detect()299 } else if (modified_trend < -threshold_) { in Detect()309 UpdateThreshold(modified_trend, now_ms); in Detect()312 void TrendlineEstimator::UpdateThreshold(double modified_trend, in UpdateThreshold() argument317 if (fabs(modified_trend) > threshold_ + kMaxAdaptOffsetMs) { in UpdateThreshold()324 const double k = fabs(modified_trend) < threshold_ ? k_down_ : k_up_; in UpdateThreshold()327 threshold_ += k * (fabs(modified_trend) - threshold_) * time_delta_ms; in UpdateThreshold()