MCPcopy Create free account
hub / github.com/MarcusRainbow/QuantMath / linear_interpolate_extrapolate

Function linear_interpolate_extrapolate

src/math/interpolation.rs:126–159  ·  view source on GitHub ↗

Helper function for linear interpolation and extrapolation.

(
    x: T, points: &[(T, f64)], left: Extrap, right: Extrap)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

interpolateMethod · 0.85

Calls 4

linear_interpolateFunction · 0.85
is_naturalMethod · 0.80
interp_cmpMethod · 0.45
extrapolateMethod · 0.45

Tested by

no test coverage detected