I was taught

y=ax^5 + bx^4 + cx^3 + dx^2 + ex + f


But anyway, I generated that data at random using a simple y=x^3+(+/-RandomNumber).

Then I warped it a bit in a photo editor.

How would I call your Trend() function to process this data?

Lets say Raw(0-999) contains the point data.