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

Function linear_interpolate

src/math/interpolation.rs:110–123  ·  view source on GitHub ↗

Linear interpolation function. The y value and result must be f64. The x value can be any type supporting subtraction giving a numeric type.

(p0: (T, f64), p1: (T, f64), x: T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 2

lerpFunction · 0.85
interp_diffMethod · 0.45

Tested by

no test coverage detected