Lines Matching refs:outEstimator

357 bool VelocityTracker::getEstimator(uint32_t id, Estimator* outEstimator) const {  in getEstimator()
358 return mStrategy->getEstimator(id, outEstimator); in getEstimator()
627 VelocityTracker::Estimator* outEstimator) const { in getEstimator()
628 outEstimator->clear(); in getEstimator()
672 outEstimator->time = newestMovement.eventTime; in getEstimator()
673 outEstimator->degree = 2; in getEstimator()
674 outEstimator->confidence = 1; in getEstimator()
675 for (size_t i = 0; i <= outEstimator->degree; i++) { in getEstimator()
676 outEstimator->xCoeff[i] = (*xCoeff)[i]; in getEstimator()
677 outEstimator->yCoeff[i] = (*yCoeff)[i]; in getEstimator()
685 if (solveLeastSquares(time, x, w, m, n, outEstimator->xCoeff, &xdet) in getEstimator()
686 && solveLeastSquares(time, y, w, m, n, outEstimator->yCoeff, &ydet)) { in getEstimator()
687 outEstimator->time = newestMovement.eventTime; in getEstimator()
688 outEstimator->degree = degree; in getEstimator()
689 outEstimator->confidence = xdet * ydet; in getEstimator()
692 int(outEstimator->degree), in getEstimator()
693 vectorToString(outEstimator->xCoeff, n).c_str(), in getEstimator()
694 vectorToString(outEstimator->yCoeff, n).c_str(), in getEstimator()
695 outEstimator->confidence); in getEstimator()
702 outEstimator->xCoeff[0] = x[0]; in getEstimator()
703 outEstimator->yCoeff[0] = y[0]; in getEstimator()
704 outEstimator->time = newestMovement.eventTime; in getEstimator()
705 outEstimator->degree = 0; in getEstimator()
706 outEstimator->confidence = 1; in getEstimator()
813 VelocityTracker::Estimator* outEstimator) const { in getEstimator()
814 outEstimator->clear(); in getEstimator()
818 populateEstimator(state, outEstimator); in getEstimator()
881 VelocityTracker::Estimator* outEstimator) const { in populateEstimator()
882 outEstimator->time = state.updateTime; in populateEstimator()
883 outEstimator->confidence = 1.0f; in populateEstimator()
884 outEstimator->degree = state.degree; in populateEstimator()
885 outEstimator->xCoeff[0] = state.xpos; in populateEstimator()
886 outEstimator->xCoeff[1] = state.xvel; in populateEstimator()
887 outEstimator->xCoeff[2] = state.xaccel / 2; in populateEstimator()
888 outEstimator->yCoeff[0] = state.ypos; in populateEstimator()
889 outEstimator->yCoeff[1] = state.yvel; in populateEstimator()
890 outEstimator->yCoeff[2] = state.yaccel / 2; in populateEstimator()
929 VelocityTracker::Estimator* outEstimator) const { in getEstimator()
930 outEstimator->clear(); in getEstimator()
994 outEstimator->time = newestMovement.eventTime; in getEstimator()
995 outEstimator->confidence = 1; in getEstimator()
996 outEstimator->xCoeff[0] = newestPosition.x; in getEstimator()
997 outEstimator->yCoeff[0] = newestPosition.y; in getEstimator()
999 outEstimator->xCoeff[1] = accumVx; in getEstimator()
1000 outEstimator->yCoeff[1] = accumVy; in getEstimator()
1001 outEstimator->degree = 1; in getEstimator()
1003 outEstimator->degree = 0; in getEstimator()
1161 VelocityTracker::Estimator* outEstimator) const { in getEstimator()
1162 outEstimator->clear(); in getEstimator()
1192 outEstimator->xCoeff[0] = 0; in getEstimator()
1193 outEstimator->yCoeff[0] = 0; in getEstimator()
1194 outEstimator->xCoeff[1] = calculateImpulseVelocity(time, x, m); in getEstimator()
1195 outEstimator->yCoeff[1] = calculateImpulseVelocity(time, y, m); in getEstimator()
1196 outEstimator->xCoeff[2] = 0; in getEstimator()
1197 outEstimator->yCoeff[2] = 0; in getEstimator()
1198 outEstimator->time = newestMovement.eventTime; in getEstimator()
1199 outEstimator->degree = 2; // similar results to 2nd degree fit in getEstimator()
1200 outEstimator->confidence = 1; in getEstimator()
1202 ALOGD("velocity: (%f, %f)", outEstimator->xCoeff[1], outEstimator->yCoeff[1]); in getEstimator()