Possible duplicate:
Optimization of cluster one-dimensional data?
So let's say I have an array like this:
[1,1,2,3,10,11,13,67,71]
Is there a convenient way to split an array into something like this?
[[1,1,2,3],[10,11,13],[67,71]]
I looked at similar questions, but most people suggested using k-tools for clusters like scipy , which is quite confusing for a newbie like me. Also, I think the k-tool is more suitable for two or more dimensional clusters? Is there a way to split an array of N numbers into many sections / clusters depending on the numbers?
Some people also offer hard range splitting, but this does not always give the results as expected.
arrays dimension cluster-analysis data-mining partition-problem
EH Jul 16 '12 at 22:25 2012-07-16 22:25
source share