A Doubly Regularized Linear Discriminant Analysis Classifier with Automatic Parameter Selection