0

Is there any free math library for peaks/valley finding in 2D array? I can write a simple one checking the slope in two consecutive steps, but I need something more advanced, like tolerance to small noise or less tolerance in the abcicess (if the peaks are placed very close to each other).

Sturm
  • 3,968
  • 10
  • 48
  • 78

1 Answers1

1

You make your naive peak finding algorithm more robust by first applying a moving average filter to your data. That will smooth out any noise and other very local features.

tskuzzy
  • 35,812
  • 14
  • 73
  • 140