# IT. Expert System.

android.view

## Class VelocityTracker.Estimator

• Enclosing class:
VelocityTracker

```public static final class VelocityTracker.Estimator
extends Object```
An estimator for the movements of a pointer based on a polynomial model. The last recorded position of the pointer is at time zero seconds. Past estimated positions are at negative times and future estimated positions are at positive times. First coefficient is position (in pixels), second is velocity (in pixels per second), third is acceleration (in pixels per second squared).
• ### Field Summary

Fields
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 Summary

Constructors
Constructor and Description
`VelocityTracker.Estimator()`
• ### Method Summary

Methods
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.
• ### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
• ### Field Detail

• #### xCoeff

`public final float[] xCoeff`
Polynomial coefficients describing motion in X.
• #### yCoeff

`public final float[] yCoeff`
Polynomial coefficients describing motion in Y.
• #### degree

`public int degree`
Polynomial degree, or zero if only position information is available.
• #### confidence

`public float confidence`
Confidence (coefficient of determination), between 0 (no fit) and 1 (perfect fit).
• ### Constructor Detail

• #### VelocityTracker.Estimator

`public VelocityTracker.Estimator()`
• ### Method Detail

• #### estimateX

`public float estimateX(float time)`
Gets an estimate of the X position of the pointer at the specified time point.
Parameters:
`time` - The time point in seconds, 0 is the last recorded time.
Returns:
The estimated X coordinate.
• #### estimateY

`public float estimateY(float time)`
Gets an estimate of the Y position of the pointer at the specified time point.
Parameters:
`time` - The time point in seconds, 0 is the last recorded time.
Returns:
The estimated Y coordinate.
• #### getXCoeff

`public float getXCoeff(int index)`
Gets the X coefficient with the specified index.
Parameters:
`index` - The index of the coefficient to return.
Returns:
The X coefficient, or 0 if the index is greater than the degree.
• #### getYCoeff

`public float getYCoeff(int index)`
Gets the Y coefficient with the specified index.
Parameters:
`index` - The index of the coefficient to return.
Returns:
The Y coefficient, or 0 if the index is greater than the degree.

Content
{"ft_lang_label":"__label__en","ft_lang_prob":0.5754354,"math_prob":0.8770078,"size":1370,"snap":"2020-10-2020-16","text_gpt3_token_len":305,"char_repetition_ratio":0.15300146,"word_repetition_ratio":0.28019324,"special_character_ratio":0.21167883,"punctuation_ratio":0.08144797,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9907456,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-25T21:40:19Z\",\"WARC-Record-ID\":\"<urn:uuid:5ed2505b-017a-47cf-9363-274ad8291a1b>\",\"Content-Length\":\"66286\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:34175bf2-7065-4ce9-98a0-02f9676d4e93>\",\"WARC-Concurrent-To\":\"<urn:uuid:a9b5936e-95ff-4934-b80a-52e054345137>\",\"WARC-IP-Address\":\"159.224.19.18\",\"WARC-Target-URI\":\"http://it.eltask.com/tr/z-anr/reference/android/view/velocitytracker.estimator.html\",\"WARC-Payload-Digest\":\"sha1:AANHCO5EY623WMFDPXZRFDYHSXYIHDOI\",\"WARC-Block-Digest\":\"sha1:CU4TWNGTMSBTONGHBP4POWBNZPFPKSMU\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875146160.21_warc_CC-MAIN-20200225202625-20200225232625-00226.warc.gz\"}"}