Text this: Kernel density estimation and applications to discriminant analysis