Lines Matching refs:outEstimator

355 bool VelocityTracker::getEstimator(uint32_t id, Estimator* outEstimator) const {  in getEstimator()
356 return mStrategy->getEstimator(id, outEstimator); in getEstimator()
604 VelocityTracker::Estimator* outEstimator) const { in getEstimator()
605 outEstimator->clear(); in getEstimator()
645 outEstimator->time = newestMovement.eventTime; in getEstimator()
646 outEstimator->degree = 2; in getEstimator()
647 outEstimator->confidence = 1; in getEstimator()
648 outEstimator->xCoeff[0] = 0; // only slope is calculated, set rest of coefficients = 0 in getEstimator()
649 outEstimator->yCoeff[0] = 0; in getEstimator()
650 outEstimator->xCoeff[1] = solveUnweightedLeastSquaresDeg2(time, x, m); in getEstimator()
651 outEstimator->yCoeff[1] = solveUnweightedLeastSquaresDeg2(time, y, m); in getEstimator()
652 outEstimator->xCoeff[2] = 0; in getEstimator()
653 outEstimator->yCoeff[2] = 0; in getEstimator()
659 if (solveLeastSquares(time, x, w, m, n, outEstimator->xCoeff, &xdet) in getEstimator()
660 && solveLeastSquares(time, y, w, m, n, outEstimator->yCoeff, &ydet)) { in getEstimator()
661 outEstimator->time = newestMovement.eventTime; in getEstimator()
662 outEstimator->degree = degree; in getEstimator()
663 outEstimator->confidence = xdet * ydet; in getEstimator()
666 int(outEstimator->degree), in getEstimator()
667 vectorToString(outEstimator->xCoeff, n).c_str(), in getEstimator()
668 vectorToString(outEstimator->yCoeff, n).c_str(), in getEstimator()
669 outEstimator->confidence); in getEstimator()
676 outEstimator->xCoeff[0] = x[0]; in getEstimator()
677 outEstimator->yCoeff[0] = y[0]; in getEstimator()
678 outEstimator->time = newestMovement.eventTime; in getEstimator()
679 outEstimator->degree = 0; in getEstimator()
680 outEstimator->confidence = 1; in getEstimator()
787 VelocityTracker::Estimator* outEstimator) const { in getEstimator()
788 outEstimator->clear(); in getEstimator()
792 populateEstimator(state, outEstimator); in getEstimator()
855 VelocityTracker::Estimator* outEstimator) const { in populateEstimator()
856 outEstimator->time = state.updateTime; in populateEstimator()
857 outEstimator->confidence = 1.0f; in populateEstimator()
858 outEstimator->degree = state.degree; in populateEstimator()
859 outEstimator->xCoeff[0] = state.xpos; in populateEstimator()
860 outEstimator->xCoeff[1] = state.xvel; in populateEstimator()
861 outEstimator->xCoeff[2] = state.xaccel / 2; in populateEstimator()
862 outEstimator->yCoeff[0] = state.ypos; in populateEstimator()
863 outEstimator->yCoeff[1] = state.yvel; in populateEstimator()
864 outEstimator->yCoeff[2] = state.yaccel / 2; in populateEstimator()
903 VelocityTracker::Estimator* outEstimator) const { in getEstimator()
904 outEstimator->clear(); in getEstimator()
968 outEstimator->time = newestMovement.eventTime; in getEstimator()
969 outEstimator->confidence = 1; in getEstimator()
970 outEstimator->xCoeff[0] = newestPosition.x; in getEstimator()
971 outEstimator->yCoeff[0] = newestPosition.y; in getEstimator()
973 outEstimator->xCoeff[1] = accumVx; in getEstimator()
974 outEstimator->yCoeff[1] = accumVy; in getEstimator()
975 outEstimator->degree = 1; in getEstimator()
977 outEstimator->degree = 0; in getEstimator()
1126 VelocityTracker::Estimator* outEstimator) const { in getEstimator()
1127 outEstimator->clear(); in getEstimator()
1157 outEstimator->xCoeff[0] = 0; in getEstimator()
1158 outEstimator->yCoeff[0] = 0; in getEstimator()
1159 outEstimator->xCoeff[1] = calculateImpulseVelocity(time, x, m); in getEstimator()
1160 outEstimator->yCoeff[1] = calculateImpulseVelocity(time, y, m); in getEstimator()
1161 outEstimator->xCoeff[2] = 0; in getEstimator()
1162 outEstimator->yCoeff[2] = 0; in getEstimator()
1163 outEstimator->time = newestMovement.eventTime; in getEstimator()
1164 outEstimator->degree = 2; // similar results to 2nd degree fit in getEstimator()
1165 outEstimator->confidence = 1; in getEstimator()
1167 ALOGD("velocity: (%f, %f)", outEstimator->xCoeff[1], outEstimator->yCoeff[1]); in getEstimator()