|
statcpp
C++17 Header-Only Statistics Library
|
Order statistics implementation. More...
#include <algorithm>#include <cmath>#include <cstddef>#include <functional>#include <iterator>#include <type_traits>#include <limits>#include <stdexcept>#include <utility>#include <vector>Go to the source code of this file.
Classes | |
| struct | statcpp::quartile_result |
| Quartile result. More... | |
| struct | statcpp::five_number_summary_result |
| Five-number summary result. More... | |
Namespaces | |
| namespace | statcpp |
Functions | |
| template<typename Iterator > | |
| double | statcpp::interpolate_at (Iterator first, std::size_t n, double p) |
| Linear interpolation at position. | |
| template<typename Iterator , typename Projection > | |
| double | statcpp::interpolate_at (Iterator first, std::size_t n, double p, Projection proj) |
| Linear interpolation at position with projection. | |
| template<typename Iterator > | |
| auto | statcpp::minimum (Iterator first, Iterator last) |
| Return minimum value. | |
| template<typename Iterator , typename Projection > | |
| auto | statcpp::minimum (Iterator first, Iterator last, Projection proj) |
| Return minimum value with projection. | |
| template<typename Iterator > | |
| auto | statcpp::maximum (Iterator first, Iterator last) |
| Return maximum value. | |
| template<typename Iterator , typename Projection > | |
| auto | statcpp::maximum (Iterator first, Iterator last, Projection proj) |
| Return maximum value with projection. | |
| template<typename Iterator > | |
| quartile_result | statcpp::quartiles (Iterator first, Iterator last) |
| Return quartiles. | |
| template<typename Iterator , typename Projection > | |
| quartile_result | statcpp::quartiles (Iterator first, Iterator last, Projection proj) |
| Return quartiles with projection. | |
| template<typename Iterator > | |
| double | statcpp::percentile (Iterator first, Iterator last, double p) |
| Return percentile. | |
| template<typename Iterator , typename Projection > | |
| double | statcpp::percentile (Iterator first, Iterator last, double p, Projection proj) |
| Return percentile with projection. | |
| template<typename Iterator > | |
| five_number_summary_result | statcpp::five_number_summary (Iterator first, Iterator last) |
| Return five-number summary. | |
| template<typename Iterator , typename Projection > | |
| five_number_summary_result | statcpp::five_number_summary (Iterator first, Iterator last, Projection proj) |
| Return five-number summary with projection. | |
| template<typename Iterator , typename WeightIterator > | |
| double | statcpp::weighted_median (Iterator first, Iterator last, WeightIterator weight_first, WeightIterator weight_last) |
| Weighted median (safe overload) | |
| template<typename Iterator , typename WeightIterator > | |
| double | statcpp::weighted_median (Iterator first, Iterator last, WeightIterator weight_first) |
| Weighted median. | |
| template<typename Iterator , typename WeightIterator , typename Projection > | |
| double | statcpp::weighted_median (Iterator first, Iterator last, WeightIterator weight_first, WeightIterator weight_last, Projection proj) |
| Weighted median with projection (safe overload) | |
| template<typename Iterator , typename WeightIterator , typename Projection > | |
| double | statcpp::weighted_median (Iterator first, Iterator last, WeightIterator weight_first, Projection proj) |
| Weighted median with projection. | |
| template<typename Iterator , typename WeightIterator > | |
| double | statcpp::weighted_percentile (Iterator first, Iterator last, WeightIterator weight_first, WeightIterator weight_last, double p) |
| Weighted percentile (safe overload) | |
| template<typename Iterator , typename WeightIterator > | |
| double | statcpp::weighted_percentile (Iterator first, Iterator last, WeightIterator weight_first, double p) |
| Weighted percentile. | |
| template<typename Iterator , typename WeightIterator , typename Projection > | |
| double | statcpp::weighted_percentile (Iterator first, Iterator last, WeightIterator weight_first, WeightIterator weight_last, double p, Projection proj) |
| Weighted percentile with projection (safe overload) | |
| template<typename Iterator , typename WeightIterator , typename Projection > | |
| double | statcpp::weighted_percentile (Iterator first, Iterator last, WeightIterator weight_first, double p, Projection proj) |
| Weighted percentile with projection. | |
Order statistics implementation.
Provides minimum, maximum, quartiles, percentiles, weighted median, and more.
Definition in file order_statistics.hpp.