https://medium.com/@monocosmo77/new-developments-in-linear-discriminant-analysis-part2-machine-learning-466a5fd0a4b