Classification Methods For Multivariate And Functional Data Using Features From Density Ratio Estimation