evaluate#

rateslib.splines.evaluate(spline, x, m=0)#

Evaluate a single x-axis data point, or a derivative value, on a Spline.

This method automatically calls ppdnev_single(), ppdnev_single_dual() or ppdnev_single_dual2() based on the input form of x.

This method is AD safe.

Parameters:
  • spline (PPSplineF64, PPSplineDual, PPSplineDual2) – The Spline on which to evaluate the data point.

  • x (float, Dual, Dual2) – The x-axis data point to evaluate.

  • m (int, optional) – The order of derivative to evaluate. If seeking value only use m=0.

Return type:

float, Dual, Dual2