IT. Expert System.

Android Reference

VelocityTracker.Estimator


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.
    • 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

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 3365 / . Delta: 0.03202 с