2011-12-07
Local max,min and slope count in python list.
Simple function written in python - local maximum and minimum count and slope count in the given 1D array (list). M-shaped function has two maximums (or better say - two ascending/upward numbers in row) and minimums (two descending/downward numbers in row), but Λ shaped- one for both. Sometimes it is needed to know exact count of such maximums or minimums, or both.
Abonēt:
Ziņas komentāri (Atom)
Nav komentāru:
Ierakstīt komentāru