Searched refs:modified_trend (Results 1 – 1 of 1) sorted by relevance
277 const double modified_trend = in Detect() local279 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() argument318 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()