wotan icon indicating copy to clipboard operation
wotan copied to clipboard

Huber spline has problems with zero-crossing trend

Open guyrixon opened this issue 2 years ago • 1 comments

The flatten function computes the trend and then divides it into the input flux to get the output flux. That implies that the trend comes back from the estimator centred on a value of 1, but for Huber spline it doesn't; all the Huber-spline trends for my data are coming back centred on 0. This inevitably produces wild excursions in the middle where the trend is close to zero, even when the shape of the trend is reasonable.

guyrixon avatar Sep 01 '23 14:09 guyrixon

Can you check the example which has a huber spline application? In the example it works fine.

hippke avatar Sep 06 '23 20:09 hippke