Best way to approximate function

232 Views Asked by At

What is the best approximation for function like on attached image ? Function is increasing or decreasing from "spike" to "spike"

Zoom to the first few members: Zoom to the start of function

All members: Whole function

1

There are 1 best solutions below

2
On

I would be skeptical of the validity of the wiggles. I would make it a straight line from the max to the min, set the min to zero and the max to $260000$ Then all you need to remember is the $x$ positions of the maxima and minima. Then I would plot the number of the minimum against its $x$ position and see if I could find a smooth curve for them, same for the max.