php - Find all local maximum and minimum of an array -
We can set global maximum and global minimum one array in php, but what do we do to find local minimum (minimum) And local maximum (maximum)
How to get with php
This is remarkably simple for tabular data.
Track with coordination values, and calculate frequent differences If the difference changes, then you have a constant point.
If you are trying to implement any interpolation rule, then it is more difficult, which will rotate the point between knees, such as cubic spline.
Comments
Post a Comment