https://pyside.pythonprogramminghelp.com/5-most-effective-tactics-to-smoothing-p-splines/