NearestNeighbor

class kgpy.interpolation.NearestNeighbor(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_nearest(grid)

rtype

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

copy()

rtype

typing.TypeVar(CopyableT, bound= Copyable)

copy_shallow()

rtype

typing.TypeVar(CopyableT, bound= Copyable)

Inheritance Diagram

Inheritance diagram of kgpy.interpolation.NearestNeighbor

calc_index_nearest(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) –

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