Lines Matching refs:mAggregatedMetrics
73 mAggregatedMetrics(maxNumPredictions), in MotionPredictorMetricsManager()
139 std::fill(mAggregatedMetrics.begin(), mAggregatedMetrics.end(), AggregatedStrokeMetrics{}); in clearStrokeData()
212 mAggregatedMetrics[tIndex].alongTrajectoryErrorSum += alongTrajectoryError; in updateAggregatedMetrics()
213 mAggregatedMetrics[tIndex].alongTrajectorySumSquaredErrors += in updateAggregatedMetrics()
215 mAggregatedMetrics[tIndex].offTrajectorySumSquaredErrors += in updateAggregatedMetrics()
218 mAggregatedMetrics[tIndex].pressureSumSquaredErrors += pressureError * pressureError; in updateAggregatedMetrics()
219 ++mAggregatedMetrics[tIndex].generalErrorsCount; in updateAggregatedMetrics()
228 mAggregatedMetrics[tIndex].highVelocityAlongTrajectorySse += in updateAggregatedMetrics()
230 mAggregatedMetrics[tIndex].highVelocityOffTrajectorySse += in updateAggregatedMetrics()
232 ++mAggregatedMetrics[tIndex].highVelocityErrorsCount; in updateAggregatedMetrics()
252 mAggregatedMetrics[tIndex].scaleInvariantAlongTrajectorySse += in updateAggregatedMetrics()
254 mAggregatedMetrics[tIndex].scaleInvariantOffTrajectorySse += in updateAggregatedMetrics()
256 ++mAggregatedMetrics[tIndex].scaleInvariantErrorsCount; in updateAggregatedMetrics()
260 for (size_t i = 0; i < mAggregatedMetrics.size(); ++i) { in computeAtomFields()
261 if (mAggregatedMetrics[i].generalErrorsCount == 0) { in computeAtomFields()
272 const float alongTrajectoryErrorMean = mAggregatedMetrics[i].alongTrajectoryErrorSum / in computeAtomFields()
273 mAggregatedMetrics[i].generalErrorsCount; in computeAtomFields()
277 const float alongTrajectoryMse = mAggregatedMetrics[i].alongTrajectorySumSquaredErrors / in computeAtomFields()
278 mAggregatedMetrics[i].generalErrorsCount; in computeAtomFields()
288 LOG_ALWAYS_FATAL_IF(mAggregatedMetrics[i].offTrajectorySumSquaredErrors < 0, in computeAtomFields()
291 i, mAggregatedMetrics[i].offTrajectorySumSquaredErrors); in computeAtomFields()
293 std::sqrt(mAggregatedMetrics[i].offTrajectorySumSquaredErrors / in computeAtomFields()
294 mAggregatedMetrics[i].generalErrorsCount); in computeAtomFields()
298 LOG_ALWAYS_FATAL_IF(mAggregatedMetrics[i].pressureSumSquaredErrors < 0, in computeAtomFields()
301 i, mAggregatedMetrics[i].pressureSumSquaredErrors); in computeAtomFields()
302 const float pressureRmse = std::sqrt(mAggregatedMetrics[i].pressureSumSquaredErrors / in computeAtomFields()
303 mAggregatedMetrics[i].generalErrorsCount); in computeAtomFields()
309 if ((i + 2 >= mMaxNumPredictions) && (mAggregatedMetrics[i].highVelocityErrorsCount > 0)) { in computeAtomFields()
310 LOG_ALWAYS_FATAL_IF(mAggregatedMetrics[i].highVelocityAlongTrajectorySse < 0, in computeAtomFields()
313 i, mAggregatedMetrics[i].highVelocityAlongTrajectorySse); in computeAtomFields()
315 std::sqrt(mAggregatedMetrics[i].highVelocityAlongTrajectorySse / in computeAtomFields()
316 mAggregatedMetrics[i].highVelocityErrorsCount); in computeAtomFields()
320 LOG_ALWAYS_FATAL_IF(mAggregatedMetrics[i].highVelocityOffTrajectorySse < 0, in computeAtomFields()
323 i, mAggregatedMetrics[i].highVelocityOffTrajectorySse); in computeAtomFields()
325 std::sqrt(mAggregatedMetrics[i].highVelocityOffTrajectorySse / in computeAtomFields()
326 mAggregatedMetrics[i].highVelocityErrorsCount); in computeAtomFields()
339 for (size_t j = 0; j < mAggregatedMetrics.size(); ++j) { in computeAtomFields()
340 if (mAggregatedMetrics[j].scaleInvariantErrorsCount == 0) { in computeAtomFields()
344 LOG_ALWAYS_FATAL_IF(mAggregatedMetrics[j].scaleInvariantAlongTrajectorySse < 0, in computeAtomFields()
347 j, mAggregatedMetrics[j].scaleInvariantAlongTrajectorySse); in computeAtomFields()
349 std::sqrt(mAggregatedMetrics[j].scaleInvariantAlongTrajectorySse / in computeAtomFields()
350 mAggregatedMetrics[j].scaleInvariantErrorsCount); in computeAtomFields()
352 LOG_ALWAYS_FATAL_IF(mAggregatedMetrics[j].scaleInvariantOffTrajectorySse < 0, in computeAtomFields()
355 j, mAggregatedMetrics[j].scaleInvariantOffTrajectorySse); in computeAtomFields()
356 offTrajectoryRmseSum += std::sqrt(mAggregatedMetrics[j].scaleInvariantOffTrajectorySse / in computeAtomFields()
357 mAggregatedMetrics[j].scaleInvariantErrorsCount); in computeAtomFields()