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
import math | |
import random | |
if __name__ == '__main__': | |
# configuration | |
wordcount = 7 | |
separator = "_" | |
capitalize = False | |
# load popular english word list (found at https://github.com/dolph/dictionary) |
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
def tarvainen_filter(sig, lam): | |
""" Returns detrended signal | |
Keyword arguments: | |
sig - input signal (1d array) | |
lam - smoothing parameter(lambda) | |
The implementation of | |
"An Advanced Detrending Method With Application to HRV Analysis" | |
Mika P. Tarvainen, Perttu O. Ranta-aho, and Pasi A. Karjalainen |