XP is just a number | |
PerlMonks |
Re: Optimizing a naive clustering algorithmby RichardK (Parson) |
on Apr 15, 2014 at 17:38 UTC ( [id://1082370]=note: print w/replies, xml ) | Need Help?? |
I haven't read about the concept (yet!) so I'm just commenting on your code. Copying and manipulating those hashes in max_diff is going to be slow, lots of memory copies, and if I've understood correctly you don't need to do it that way. Wouldn't something like this give you the number you need?
In Section
Seekers of Perl Wisdom
|
|