https://pyqt.pythonprogramminghelp.com/5-everyone-should-steal-from-non-linear-regression/