A
Alf P. Steinbach
* Baloff:
It's almost guaranteed to be less work to write your own code than
to find, install and figure out a library.
The indices, surely?
Uhm, a sequence doesn't have a derivate, but taking that as a figure of
speech: just loop over the numbers and note every change and zero in the
first difference.
Is there a library which can help in doing the task below or do I need
to write something up?
It's almost guaranteed to be less work to write your own code than
to find, install and figure out a library.
I need to get the index of the relative “local” maximas and minimas in a
sequence or real numbers.
The indices, surely?
That is when the derivative is zero and there
is a change in direction.
Uhm, a sequence doesn't have a derivate, but taking that as a figure of
speech: just loop over the numbers and note every change and zero in the
first difference.