/* * Copyright 2011 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef RTC_BASE_ROLLING_ACCUMULATOR_H_ #define RTC_BASE_ROLLING_ACCUMULATOR_H_ #include <stddef.h> #include <algorithm> #include <vector> #include "rtc_base/checks.h" #include "rtc_base/numerics/running_statistics.h" namespace rtc { // RollingAccumulator stores and reports statistics // over N most recent samples. // // T is assumed to be an int, long, double or float. template <typename T> class RollingAccumulator { … }; } // namespace rtc #endif // RTC_BASE_ROLLING_ACCUMULATOR_H_