Home | History | Annotate | Download | only in utils

Lines Matching refs:Sample

20      * out the data using a moving average over this window size. A sample window size n will
28 * Only consecutive samples will factor into the rolling average sample window.
29 * Any samples that are older than this maximum are continually purged from the sample window,
37 private final Deque<Sample> mRecentSamples = Lists.newLinkedList();
40 private static class Sample {
50 Sample sample;
53 final Sample last = mRecentSamples.peekLast();
59 sample = mRecentSamples.removeFirst();
61 sample = new Sample();
63 sample.pos = pos;
64 sample.millis = nowMs;
66 mRecentSamples.add(sample);
91 for (Sample s : mRecentSamples) {