Numpy smooth array
Herman munster shoes gif
Better is to use the SVD algorithm (numpy.linalg.lstsq) or the QR algorithm (statsmodels.OLS). Recall, to do linear algebra multiplication in numpy we use the dot function. \(X.T\) is the transpose of \(X\) and inv calculates the inverse of a square matrix.
Nov 01, 2015 · import numpy as np import peakutils cb = np.array([-0.010223,... ]) indexes = peakutils.indexes(cb, thres=0.02/max(cb), min_dist=100) The PeakUtils indexes function is easy to use and allows to filter on an height threshold and on a minimum distance between peaks.