hpc4cmb / toast

Time Ordered Astrophysics Scalable Tools
Other
44 stars 39 forks source link

Make polynomial regression more robust #706

Closed keskitalo closed 11 months ago

keskitalo commented 11 months ago

Existing implementation of the polynomial filter is fragile. It was using SVD to overcome singular template covariance matrix and applied an arbitrary rcond cut to small singular values. When small singular values were encountered, the results were compromised.

The new implementation accepts singular values down to machine precision and does away with the squaring of the template matrix. The latter greatly improved the condition number of the system.