public static final class VelocityTracker.Estimator extends Object
Modifier and Type | Field and Description |
---|---|
float |
confidence
Confidence (coefficient of determination), between 0 (no fit) and 1 (perfect fit).
|
int |
degree
Polynomial degree, or zero if only position information is available.
|
float[] |
xCoeff
Polynomial coefficients describing motion in X.
|
float[] |
yCoeff
Polynomial coefficients describing motion in Y.
|
Constructor and Description |
---|
VelocityTracker.Estimator() |
Modifier and Type | Method and Description |
---|---|
float |
estimateX(float time)
Gets an estimate of the X position of the pointer at the specified time point.
|
float |
estimateY(float time)
Gets an estimate of the Y position of the pointer at the specified time point.
|
float |
getXCoeff(int index)
Gets the X coefficient with the specified index.
|
float |
getYCoeff(int index)
Gets the Y coefficient with the specified index.
|
public final float[] xCoeff
public final float[] yCoeff
public int degree
public float confidence
public float estimateX(float time)
time
- The time point in seconds, 0 is the last recorded time.public float estimateY(float time)
time
- The time point in seconds, 0 is the last recorded time.public float getXCoeff(int index)
index
- The index of the coefficient to return.public float getYCoeff(int index)
index
- The index of the coefficient to return.