Ckmeans.1d.dp: Optimal k-means Clustering in One Dimension by Dynamic Programming
introduction to information retrieval : index .