I did implement a slightly different version of centroid and called it centroidv2. It uses diff to find the peak maxima and peak starts and ends and does not require the eps parameter. The implementation is more concise. With the sample data it seems to pick all the peaks which centroid does. See figure below. Of course it will need more testing.
Hi,
I did implement a slightly different version of centroid and called it centroidv2. It uses
diff
to find the peak maxima and peak starts and ends and does not require theeps
parameter. The implementation is more concise. With the sample data it seems to pick all the peaks which centroid does. See figure below. Of course it will need more testing.Could you please review my pull request?