cupyx.scipy.signal.qspline1d_eval#

cupyx.scipy.signal.qspline1d_eval(cj, newx, dx=1.0, x0=0)[source]#

Evaluate a quadratic spline at the new set of points.

Parameters:
  • cj (ndarray) – Quadratic spline coefficients

  • newx (ndarray) – New set of points.

  • dx (float, optional) – Old sample-spacing, the default value is 1.0.

  • x0 (int, optional) – Old origin, the default value is 0.

Returns:

res – Evaluated a quadratic spline points.

Return type:

ndarray

See also

qspline1d

Compute quadratic spline coefficients for rank-1 array.

Notes

dx is the old sample-spacing while x0 was the old origin. In other-words the old-sample points (knot-points) for which the cj represent spline coefficients were at equally-spaced points of:

oldx = x0 + j*dx  j=0...N-1, with N=len(cj)

Edges are handled using mirror-symmetric boundary conditions.