Hey guys,
I have a data stream coming from a list, something like:
1 1 2 2 3 3 4 5 6 7 8 7 6 5 4 3 3 2 1 1 1
What I want to do, is to detect the peak of this wave. What i've tried is something like this:
- write an incoming number into a float object
- compare this float-number with the next incoming number
- if new incoming number bigger than f-number -> write new number into f and continue with the next number
- else/not bigger than f-number, send a bang
...but I didn't get the expected results..
Maybe you know a trick to do this.
Thanks in advance!
Manuel