splinart.spline package#

Submodules#

splinart.spline.spline module#

Cubic spline.

splinart.spline.spline.spline(xs: ndarray[tuple[Any, ...], dtype[floating]], ys: ndarray[tuple[Any, ...], dtype[floating]]) ndarray[tuple[Any, ...], dtype[floating]]#

Return the second derivative of a cubic spline.

Parameters:
  • xs (np.ndarray) – The x coordinate of the cubic spline.

  • ys (np.ndarray) – The y coordinate of the cubic spline.

Returns:

The second derivative of the cubic spline.

Return type:

np.ndarray

splinart.spline.splint module#

Integration of a cubic spline.

splinart.spline.splint.splint(xs: ndarray[tuple[Any, ...], dtype[floating]], ys: ndarray[tuple[Any, ...], dtype[floating]], y2s: ndarray[tuple[Any, ...], dtype[floating]], x: ndarray[tuple[Any, ...], dtype[floating]], y: ndarray[tuple[Any, ...], dtype[floating]]) None#

Evaluate a sample on a cubic spline.

Parameters:
  • xs – The x coordinates of the cubic spline.

  • ys – The y coordinates of the cubic spline.

  • y2s – The second derivative of the cubic spline.

  • x – The sample where to evaluation the cubic spline.

  • y – The y coordinates of the sample.

Module contents#

Spline package.

splinart.spline.spline(xs: ndarray[tuple[Any, ...], dtype[floating]], ys: ndarray[tuple[Any, ...], dtype[floating]]) ndarray[tuple[Any, ...], dtype[floating]]#

Return the second derivative of a cubic spline.

Parameters:
  • xs (np.ndarray) – The x coordinate of the cubic spline.

  • ys (np.ndarray) – The y coordinate of the cubic spline.

Returns:

The second derivative of the cubic spline.

Return type:

np.ndarray

splinart.spline.splint(xs: ndarray[tuple[Any, ...], dtype[floating]], ys: ndarray[tuple[Any, ...], dtype[floating]], y2s: ndarray[tuple[Any, ...], dtype[floating]], x: ndarray[tuple[Any, ...], dtype[floating]], y: ndarray[tuple[Any, ...], dtype[floating]]) None#

Evaluate a sample on a cubic spline.

Parameters:
  • xs – The x coordinates of the cubic spline.

  • ys – The y coordinates of the cubic spline.

  • y2s – The second derivative of the cubic spline.

  • x – The sample where to evaluation the cubic spline.

  • y – The y coordinates of the sample.