ostk.mathematics.curve_fitting.interpolator.CubicSpline

class CubicSpline(*args, **kwargs)

Bases: Interpolator

Overloaded function.

  1. __init__(self: ostk.mathematics.curve_fitting.interpolator.CubicSpline, x: numpy.ndarray[numpy.float64[m, 1]], y: numpy.ndarray[numpy.float64[m, 1]]) -> None

  2. __init__(self: ostk.mathematics.curve_fitting.interpolator.CubicSpline, y: numpy.ndarray[numpy.float64[m, 1]], x_0: ostk.core.type.Real, h: ostk.core.type.Real) -> None

Methods

evaluate

Overloaded function.

generate_interpolator

get_interpolation_type

class Type(self: ostk.mathematics.curve_fitting.Interpolator.Type, value: int)

Bases: pybind11_object

Members:

BarycentricRational

CubicSpline

Linear

property name
evaluate(*args, **kwargs)

Overloaded function.

  1. evaluate(self: ostk.mathematics.curve_fitting.interpolator.CubicSpline, x: numpy.ndarray[numpy.float64[m, 1]]) -> numpy.ndarray[numpy.float64[m, 1]]

  2. evaluate(self: ostk.mathematics.curve_fitting.interpolator.CubicSpline, x: float) -> float

static generate_interpolator(
interpolation_type: ostk.mathematics.curve_fitting.Interpolator.Type,
x: numpy.ndarray[numpy.float64[m, 1]],
y: numpy.ndarray[numpy.float64[m, 1]],
) ostk.mathematics.curve_fitting.Interpolator
get_interpolation_type(
self: ostk.mathematics.curve_fitting.Interpolator,
) ostk.mathematics.curve_fitting.Interpolator.Type