| OLD | NEW |
| 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_BASE_ANALYTICS_PERCENTILE_FILTER_H_ | 11 #ifndef WEBRTC_BASE_NUMERICS_PERCENTILE_FILTER_H_ |
| 12 #define WEBRTC_BASE_ANALYTICS_PERCENTILE_FILTER_H_ | 12 #define WEBRTC_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/base/checks.h" |
| 20 | 20 |
| 21 namespace webrtc { | 21 namespace webrtc { |
| 22 | 22 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 percentile_index_ = index; | 105 percentile_index_ = index; |
| 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_BASE_ANALYTICS_PERCENTILE_FILTER_H_ | 115 #endif // WEBRTC_BASE_NUMERICS_PERCENTILE_FILTER_H_ |
| OLD | NEW |