Linear interpolator
This library only supports linear interpolation at this moment !
torchdde.TorchLinearInterpolator
¤
Linear interpolator class that is compatible with batching. All elements in batch must have the same ts.
__init__(self, ts: Float[Tensor, 'time'], ys: Float[Tensor, 'batch time ...'])
¤
Arguments:
ts
: Some increasing collection of times.ys
: The observations themselves.
__call__(self, t: Union[Float[Tensor, ''], float], left = True) -> Float[Tensor, 'batch ...']
¤
Arguments:
t
: time to evalute to
add_point(self, new_t: Float[Tensor, ''], new_y: Float[Tensor, 'batch ...']) -> None
¤
Arguments:
new_t
: new timestamp added to the interpolationnew_ys
: new observation added to the interpolation