is there a way to have an alternative implementation of lfilter within scipy? I want to use the cusignal library and lfilter is not supported at the moment.
Here's my my current code that I want to speed up:
from scipy import signal
import numpy as np
data = np.random.rand(192,334)
a = [1,-1.086740193996892,0.649914553946275,-0.124948974636730]
b = [0.054778173164082,0.164334519492245,0.164334519492245,0.054778173164082]
x[range(0, len(x)),:] = signal.lfilter(b, a, x[range(0, len(x)),:])
Is there a way I can use numpy's convolve function or scipy's fftconvolve or firfilter to perform this operation? Ultimately, I want to perform the code snippet above faster than it's current version.
Any ideas or thoughts would be appreciated!