Package icyllis.modernui.view
Class VelocityTracker.LeastSquaresStrategy
java.lang.Object
icyllis.modernui.view.VelocityTracker.LeastSquaresStrategy
- All Implemented Interfaces:
VelocityTracker.Strategy
- Enclosing class:
VelocityTracker
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionLeastSquaresStrategy
(int degree) LeastSquaresStrategy
(int degree, VelocityTracker.LeastSquaresStrategy.Weighting weighting) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMovement
(long eventTime, float x, float y) void
clear()
boolean
getEstimator
(VelocityTracker.Estimator outEstimator)
-
Constructor Details
-
LeastSquaresStrategy
public LeastSquaresStrategy(int degree) -
LeastSquaresStrategy
-
-
Method Details
-
getEstimator
-
clear
public void clear()- Specified by:
clear
in interfaceVelocityTracker.Strategy
-
addMovement
public void addMovement(long eventTime, float x, float y) - Specified by:
addMovement
in interfaceVelocityTracker.Strategy
-