// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_BASE_PREDICTION_LEAST_SQUARES_PREDICTOR_H_ #define UI_BASE_PREDICTION_LEAST_SQUARES_PREDICTOR_H_ #include <deque> #include "base/component_export.h" #include "base/time/time.h" #include "ui/base/prediction/input_predictor.h" #include "ui/gfx/geometry/matrix3_f.h" namespace ui { // This class use a quadratic least square regression model: // y = b0 + b1 * x + b2 * x ^ 2. // See https://en.wikipedia.org/wiki/Linear_least_squares_(mathematics) class COMPONENT_EXPORT(UI_BASE_PREDICTION) LeastSquaresPredictor : public InputPredictor { … }; } // namespace ui #endif // UI_BASE_PREDICTION_LEAST_SQUARES_PREDICTOR_H_