Linear

class kgpy.interpolation.Linear(data, grid)

Bases: Interpolator

Parameters
__init__(data, grid)
Parameters
Return type

None

Attributes

data_final

grid_final

ndim

shape

Methods

__init__(data, grid)

calc_index_lower(grid)

rtype

typing.Tuple[numpy.ndarray, ...]

copy()

rtype

typing.TypeVar(CopyableT, bound= Copyable)

copy_shallow()

rtype

typing.TypeVar(CopyableT, bound= Copyable)

eval_recursive(grid[, index_lower, axis])

lerp(x, x0, x1, y0, y1)

rtype

astropy.units.Quantity

Inheritance Diagram

Inheritance diagram of kgpy.interpolation.Linear

calc_index_lower(grid)
Return type

typing.Tuple[numpy.ndarray, ...]

Parameters

grid (Sequence[Quantity]) –

copy()
Return type

typing.TypeVar(CopyableT, bound= Copyable)

Parameters

self (CopyableT) –

copy_shallow()
Return type

typing.TypeVar(CopyableT, bound= Copyable)

Parameters

self (CopyableT) –

eval_recursive(grid, index_lower=None, axis=0)
Parameters
classmethod lerp(x, x0, x1, y0, y1)
Return type

astropy.units.Quantity

Parameters
data: astropy.units.Quantity
property data_final: Quantity
grid: typing.Sequence[astropy.units.Quantity]
property grid_final: List[Quantity]
property ndim
property shape