output is at some input data point, not interpolated
| 36 | |
| 37 | // output is at some input data point, not interpolated |
| 38 | bool IsDataPoint(const QuantileOptions& options) { |
| 39 | // some interpolation methods return exact data point |
| 40 | return options.interpolation == QuantileOptions::LOWER || |
| 41 | options.interpolation == QuantileOptions::HIGHER || |
| 42 | options.interpolation == QuantileOptions::NEAREST; |
| 43 | } |
| 44 | |
| 45 | // quantile to exact datapoint index (IsDataPoint == true) |
| 46 | uint64_t QuantileToDataPoint(size_t length, double q, |
no outgoing calls
no test coverage detected