#ifndef RTC_BASE_NUMERICS_MOVING_PERCENTILE_FILTER_H_
#define RTC_BASE_NUMERICS_MOVING_PERCENTILE_FILTER_H_
#include <stddef.h>
#include <cstddef>
#include <list>
#include "rtc_base/checks.h"
#include "rtc_base/numerics/percentile_filter.h"
namespace webrtc {
template <typename T>
class MovingPercentileFilter { … };
template <typename T>
class MovingMedianFilter : public MovingPercentileFilter<T> { … };
template <typename T>
MovingPercentileFilter<T>::MovingPercentileFilter(float percentile,
size_t window_size)
: … { … }
template <typename T>
void MovingPercentileFilter<T>::Insert(const T& value) { … }
template <typename T>
T MovingPercentileFilter<T>::GetFilteredValue() const { … }
template <typename T>
void MovingPercentileFilter<T>::Reset() { … }
template <typename T>
size_t MovingPercentileFilter<T>::GetNumberOfSamplesStored() const { … }
}
#endif