fixed LDA for non-integer labels