python - How to find peaks in 1d array -
i reading csv file in python , preparing dataframe out of it. have microsoft kinect recording arm abduction exercise , generating csv file.
i have this array of y-coordinates of elbowleft joint. can visualize here. now, want come solution can count number of peaks or local maximum in array.
can please me solve problem?
you try smooth data smoothing filter , find values value before , after less current value. assumes want peaks in sequence. reason need smoothing filter avoid local maxima. level of smoothing required depend on noise present in data.
a simple smoothing filter sets current value average of n values before , n values after current value in sequence along current value being analyzed.
Comments
Post a Comment