Interpolator

class sorts.interpolation.Interpolator(states, t)[source]

Bases: abc.ABC

Base Interpolation class that mimics the behavior of SpaceObject so that a Interpolator instance can be used instead.

To create a Interpolator one must define the get_state method. to return interpolated This method should return states based on the data contained in the instance. This data is preferably internalized at instantiation.

Parameters
  • states (numpy.ndarray) – (6,n) array of states to interpolate between.

  • t (numpy.ndarray) – (n,) vector of times corresponding to the states.

Methods

__init__(states, t)

Initialize self.

get_state(t, **kwargs)