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

Function Lerp

cpp/src/arrow/util/tdigest.cc:39–39  ·  view source on GitHub ↗

a numerically stable lerp is unbelievably complex but we are *approximating* the quantile, so let's keep it simple

Source from the content-addressed store, hash-verified

37// a numerically stable lerp is unbelievably complex
38// but we are *approximating* the quantile, so let's keep it simple
39double Lerp(double a, double b, double t) { return a + t * (b - a); }
40
41// histogram bin
42struct Centroid {

Callers 1

QuantileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected