https://pyqt.pythonprogramminghelp.com/lessons-about-how-not-to-discriminant-function-analysis/