darsia.LinearKernel#

class LinearKernel(a=0)[source]#

Bases: BaseKernel

Linear kernel.

NOTE: Allows to to avoid singularities by shifting the kernel by a constant.

Methods

linear_combination(signal, supports, ...)

Linear combination using a numba version of the Gaussian kernel.

Attributes

a

Shift of the kernel.

linear_combination(signal, supports, interpolation_weights)[source]#

Linear combination using a numba version of the Gaussian kernel.

Parameters:
signalnp.ndarray

Signal to be interpolated.

supportsnp.ndarray

Supports.

interpolation_weightsnp.ndarray

Interpolation weights.

Returns:
np.ndarray

Interpolated signal.

a#

Shift of the kernel.