MCPcopy Create free account
hub / github.com/apache/arrow / IsDataPoint

Function IsDataPoint

cpp/src/arrow/compute/kernels/aggregate_quantile.cc:38–43  ·  view source on GitHub ↗

output is at some input data point, not interpolated

Source from the content-addressed store, hash-verified

36
37// output is at some input data point, not interpolated
38bool 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)
46uint64_t QuantileToDataPoint(size_t length, double q,

Callers 3

ComputeQuantileMethod · 0.85
ComputeQuantileMethod · 0.85
ResolveOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected