Home
last modified time | relevance | path

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

/external/webrtc/modules/congestion_controller/goog_cc/
Dtrendline_estimator.cc277 const double modified_trend = in Detect() local
279 prev_modified_trend_ = modified_trend; in Detect()
280 BWE_TEST_LOGGING_PLOT(1, "T", now_ms, modified_trend); in Detect()
282 if (modified_trend > threshold_) { in Detect()
300 } else if (modified_trend < -threshold_) { in Detect()
310 UpdateThreshold(modified_trend, now_ms); in Detect()
313 void TrendlineEstimator::UpdateThreshold(double modified_trend, in UpdateThreshold() argument
318 if (fabs(modified_trend) > threshold_ + kMaxAdaptOffsetMs) { in UpdateThreshold()
325 const double k = fabs(modified_trend) < threshold_ ? k_down_ : k_up_; in UpdateThreshold()
328 threshold_ += k * (fabs(modified_trend) - threshold_) * time_delta_ms; in UpdateThreshold()