Skip to content

Releases: MicahParks/peakdetect

Fix bug with lag of 1

30 Dec 15:11
f7adfae
Compare
Choose a tag to compare

When a lag of 1 was used, the wrong results were calculated due to a bug. This update fixes that.

Relevant issues:

Relevant pull requests:

Performance update

10 Jun 00:52
Compare
Choose a tag to compare

Using the new benchmark, BenchmarkPeakDetector_NextBatch, it appears the new version is faster by a factor of more than 10. Results may vary depending on the size of the Lag and how many values after the initialization are processed.

Changes:

  • Use Welford's method on initialization.
  • Use a similar online algorithm for computing the next mean and population standard deviation.

New references: