Skip to content

Instantly share code, notes, and snippets.

🏹
Focusing

Pei Li PeiLi-Sandman

🏹
Focusing
Block or report user

Report or block PeiLi-Sandman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@PeiLi-Sandman
PeiLi-Sandman / ThresholdingAlgo.py
Last active Oct 24, 2019 — forked from ximeg/ ThresholdingAlgo.py
Python implementation of smoothed z-score algorithm from http://stackoverflow.com/a/22640362/6029703
View ThresholdingAlgo.py
# The original version is here: https://gist.github.com/ximeg/587011a65d05f067a29ce9c22894d1d2
# I made several modifications
# Line 14, change to range(lag, len(y))
# Add "addof = 1" for np.std
# For avgFilter and stdFilter, change "filteredY[(i-lag):i]" to "filteredY[(i+1-lag):(i+1)]"
import numpy as np
import pylab
You can’t perform that action at this time.