Perl: the Markov chain saw | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Unless I'm being dense (quite possible), I think that you are going to have to explain what you mean by ... the index is sorted decreasingly according to similarity value in @sim. because I can see no corrolation between the values in those two arrays? The identical values (1.0) along the main (tl/br) diagonal are mapped to 5 different values (0,1,2,5,8) in the result? You have 9 "indexes" (0..8) in the result, and there are 9 unique values in the input which seems to indicate something, but how the same value in the input results in different indexes in the output completely eludes me. I'm guessing that the "according to similarity value" is the key, but it's going right over my head at the moment? Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In reply to Re: Sorting Index of An Array
by BrowserUk
|
|