Ckmeans.1d.dp: Optimal k-means Clustering in One Dimension by Dynamic Programming
Least squares quantization in pcm