Skip to main content

Module spline_eval

Module spline_eval 

Source
Expand description

Public spline evaluation helpers for generated density function code.

These operate on raw data (slices, scalars) rather than the CubicSpline struct, so generated code can call them with statically embedded spline data.

Functionsยง

evaluate_spline
Evaluate a spline defined by static data arrays.
find_interval
Binary search to find the interval start: largest i where locations[i] <= input.
hermite_interpolate
Hermite cubic interpolation between two adjacent spline points.