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 scipy.signal as sp | |
import numpy as np | |
import matplotlib.pylab as plt | |
# low pass functions copied from the web | |
def butter_lowpass(cutOff, fs, order=5): | |
nyq = 0.5 * fs | |
normalCutoff = cutOff / nyq | |
b, a = sp.butter(order, normalCutoff, btype='low') | |
return b, a |
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
open System.IO | |
// test filtering | |
#r @"packages/MathNet.Filtering.0.4.0/lib/net40/MathNet.Filtering.dll" | |
open MathNet.Filtering | |
let readLines (filePath:string) = seq { | |
use sr = new StreamReader (filePath) | |
while not sr.EndOfStream do | |
yield sr.ReadLine () |