Create Quadratic Discriminant Analysis with a Treshold