splinart.spline package#

Submodules#

splinart.spline.spline module#

Cubic spline.

splinart.spline.spline.spline(xs, ys)#

Return the second derivative of a cubic spline.

Parameters:
xsnp.ndarray

The x coordinate of the cubic spline.

ysnp.ndarray

The y coordinate of the cubic spline.

Returns:
np.ndarray

The second derivative of the cubic spline.

splinart.spline.splint module#

Integration of a cubic spline.

splinart.spline.splint.splint(xs, ys, y2s, x, y)#

Evaluate a sample on a cubic pline.

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, ys)

Return the second derivative of a cubic spline.

Parameters:
xsnp.ndarray

The x coordinate of the cubic spline.

ysnp.ndarray

The y coordinate of the cubic spline.

Returns:
np.ndarray

The second derivative of the cubic spline.

splinart.spline.splint(xs, ys, y2s, x, y)

Evaluate a sample on a cubic pline.

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.