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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLeastSquaresStrategy(int degree) LeastSquaresStrategy(int degree, VelocityTracker.LeastSquaresStrategy.Weighting weighting) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMovement(long eventTime, float x, float y) voidclear()booleangetEstimator(VelocityTracker.Estimator outEstimator)
-
Constructor Details
-
LeastSquaresStrategy
public LeastSquaresStrategy(int degree) -
LeastSquaresStrategy
-
-
Method Details
-
getEstimator
-
clear
public void clear()- Specified by:
clearin interfaceVelocityTracker.Strategy
-
addMovement
public void addMovement(long eventTime, float x, float y) - Specified by:
addMovementin interfaceVelocityTracker.Strategy
-