Trace On has asked for the wisdom of the Perl Monks concerning the following question:
Ok. I know that cpan has everything. Buuuuut.
Is there a way to find similar entries in hashes for datasets like (5,7,2,5,1)?.
My problem is not that I could not code some loops to compare all entries of a hash with each other. (Though I am pretty sure that I could not do it efficiently.)
The algorhythm I am looking for should have its own opionion about the similarity. It should regard (3,9,4,2,1) as more similar than (100,100,100,100,100). How it measures the similarity is not too important. I would accept any algorhythm as way more creative than my best.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hashes: Find similar entries!
by Corion (Patriarch) on Dec 17, 2015 at 08:08 UTC | |
by Trace On (Novice) on Jan 08, 2016 at 08:12 UTC | |
|
Re: Hashes: Find similar entries!
by hdb (Monsignor) on Dec 17, 2015 at 08:10 UTC | |
|
Re: Hashes: Find similar entries!
by u65 (Chaplain) on Dec 17, 2015 at 12:05 UTC | |
|
Re: Hashes: Find similar entries!
by Lennotoecom (Pilgrim) on Dec 17, 2015 at 08:18 UTC | |
|
Re: Hashes: Find similar entries!
by Anonymous Monk on Dec 17, 2015 at 07:19 UTC |