Feature extraction for nonparametric discriminant analysis