# Identifying and smoothing out peaks in an array

**URL:** <https://discourse.processing.org/t/identifying-and-smoothing-out-peaks-in-an-array/14331>\
**Category:** Coding Questions\
**Created:** [September 30, 2019, 10:36pm UTC](https://discourse.processing.org/t/identifying-and-smoothing-out-peaks-in-an-array/14331 "2019-09-30T22:36:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [October 1, 2019, 4:39am UTC](https://discourse.processing.org/t/identifying-and-smoothing-out-peaks-in-an-array/14331/2 "2019-10-01T04:39:03Z")

</div>

does not matter if that is a array or a data stream,  
the idea seems to be to have

- a filter ( play [this one](https://discourse.processing.org/t/how-to-do-a-lowpass-signal-filtering-in-processing/14251/2) )

or

- reject extreme signals

* * *

start with a code that detects that “culprit” position in array and show that code here,  
this way we understand how you would define mathematically a “peak”

---

_[View the full topic](https://discourse.processing.org/t/identifying-and-smoothing-out-peaks-in-an-array/14331)._
