Vector Fitting Kernels

Shows how to use Vector Fitting (VF) kernels to implement custom filter shapes, such as the Modified Morlet wavelet.

Vector Fitting Demo
from sgwt import DyConvolve, impulse, VFKernel
from sgwt import IMPEDANCE_EASTWEST as L
from sgwt import COORD_EASTWEST as C
from sgwt import MODIFIED_MORLET as Kjson

# Signal Input
X = impulse(L, n=-1000)

# NOTE: This is a temporary scaling workaround. A proper scaling method on the kernel object should be used.
K = VFKernel.from_dict(Kjson)
K.Q /= 2000
K.R /= 2000

with DyConvolve(L, K) as g:

    Y = g.convolve(X)
    
Vector Fitting Kernel Example