I have a 1-dimensional data which is (t) where users spend time to complete a task. I applied kernel density estimation from http://www.mathworks.com/matlabcentral/fileexchange/14034-kernel-density-estimator to remove the outliers who spent unreasonable time. I used the following lines:
[bandwidth,density,xmesh]=kde(dur1);
plot(xmesh,density);
After applying KDE, I have a problem of defining the local minima to split the data. The following link shows how the curve looks like: http://s23.postimg.org/6aa1748jf/kde.jpg I expect to see three clusters, where the middle one contains the reasonable spent time. However, the curve I have got has only one peak.
I am wondering if the steps I am following are correct?