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 sys | |
from numpy import NaN, Inf, arange, isscalar, asarray | |
def peakdet(v, delta, x = None): | |
""" | |
Converted from MATLAB script at http://billauer.co.il/peakdet.html | |
Currently returns two lists of tuples, but maybe arrays would be better | |
function [maxtab, mintab]=peakdet(v, delta, x) |