This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from numba.decorators import jit | |
import numpy as np | |
#The original version is here: https://gist.github.com/ximeg/587011a65d05f067a29ce9c22894d1d2 | |
#I made small changes and used numba to do it faster. | |
@jit | |
def thresholding_algo2(y, lag, threshold, influence): | |
signals = np.zeros(len(y)) | |
filteredY = np.array(y) |