Linear Detrend

Fits a linear trend to the given dataset, and returns the linear trend subtracted out

Algorithmia Platform License

Run an Example

[
  0.1761904761904765,
  -0.060952380952380605,
  -0.1980952380952377,
  -0.035238095238094694,
  0.027619047619047585,
  0.09047619047619075
]

Install & Use

Use

curl -X POST -d '[0.1,0.9,1.8,3.0,4.1,5.2]' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/TimeSeries/LinearDetrend/0.1.1