1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2023 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<motion-predictor>
17  <!-- The time interval (ns) between the model's predictions. -->
18  <prediction-interval>4166666</prediction-interval>  <!-- 4.167 ms = ~240 Hz -->
19  <!-- The noise floor (px) for predicted distances.
20
21       As the model is trained stochastically, there is some expected minimum
22       variability in its output. This can be a UX issue when the input device
23       is moving slowly and the variability is large relative to the magnitude
24       of the motion. In these cases, it is better to inhibit the prediction,
25       rather than show noisy predictions (and there is little benefit to
26       prediction anyway).
27
28       The value for this parameter should at least be close to the maximum
29       predicted distance when the input device is held stationary (i.e. the
30       expected minimum variability), and perhaps a little larger to capture
31       the UX issue mentioned above.
32  -->
33  <distance-noise-floor>0.2</distance-noise-floor>
34  <!-- The low and high jerk thresholds for prediction pruning.
35
36    The jerk thresholds are based on normalized dt = 1 calculations.
37  -->
38  <low-jerk>1.0</low-jerk>
39  <high-jerk>1.1</high-jerk>
40</motion-predictor>
41
42