Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Side by Side Diff: webrtc/rtc_base/numerics/percentile_filter.h

Issue 2963273002: Update includes for webrtc/{base => rtc_base} rename (3/3) (Closed)
Patch Set: git cl format Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_RTC_BASE_NUMERICS_PERCENTILE_FILTER_H_ 11 #ifndef WEBRTC_RTC_BASE_NUMERICS_PERCENTILE_FILTER_H_
12 #define WEBRTC_RTC_BASE_NUMERICS_PERCENTILE_FILTER_H_ 12 #define WEBRTC_RTC_BASE_NUMERICS_PERCENTILE_FILTER_H_
13 13
14 #include <stdint.h> 14 #include <stdint.h>
15 15
16 #include <iterator> 16 #include <iterator>
17 #include <set> 17 #include <set>
18 18
19 #include "webrtc/base/checks.h" 19 #include "webrtc/rtc_base/checks.h"
20 20
21 namespace webrtc { 21 namespace webrtc {
22 22
23 // Class to efficiently get the percentile value from a group of observations. 23 // Class to efficiently get the percentile value from a group of observations.
24 // The percentile is the value below which a given percentage of the 24 // The percentile is the value below which a given percentage of the
25 // observations fall. 25 // observations fall.
26 template <typename T> 26 template <typename T>
27 class PercentileFilter { 27 class PercentileFilter {
28 public: 28 public:
29 // Construct filter. |percentile| should be between 0 and 1. 29 // Construct filter. |percentile| should be between 0 and 1.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 106 }
107 107
108 template <typename T> 108 template <typename T>
109 T PercentileFilter<T>::GetPercentileValue() const { 109 T PercentileFilter<T>::GetPercentileValue() const {
110 return set_.empty() ? 0 : *percentile_it_; 110 return set_.empty() ? 0 : *percentile_it_;
111 } 111 }
112 112
113 } // namespace webrtc 113 } // namespace webrtc
114 114
115 #endif // WEBRTC_RTC_BASE_NUMERICS_PERCENTILE_FILTER_H_ 115 #endif // WEBRTC_RTC_BASE_NUMERICS_PERCENTILE_FILTER_H_
OLDNEW
« no previous file with comments | « webrtc/rtc_base/numerics/exp_filter_unittest.cc ('k') | webrtc/rtc_base/numerics/percentile_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698