chromium/third_party/webrtc/rtc_base/numerics/moving_percentile_filter.h

/*
 *  Copyright (c) 2017 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_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 {

// Class to efficiently get moving percentile filter from a stream of samples.
template <typename T>
class MovingPercentileFilter {};

// Convenience type for the common median case.
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 {}

}  // namespace webrtc
#endif  // RTC_BASE_NUMERICS_MOVING_PERCENTILE_FILTER_H_