changed SD to log(SD) for LDA and QDA