Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Comparing 2-D co-ordinates

by aging acolyte (Pilgrim)
on Jul 31, 2003 at 15:19 UTC ( #279607=note: print w/ replies, xml ) Need Help??


in reply to Re: Comparing 2-D co-ordinates
in thread Comparing 2-D co-ordinates

Thanks for the suggestions,

But both Browser's and fglock suggestions are greedy - ie they grab the maximum range. I want the largest discrete answer. To munge my data a little from above. If the data were:

'NM_176827','620','710' 'NM_176827','621','710' 'NM_176827','618','692' 'NM_176827','629','710'
The larget individual result is still number 1 but the range is still 618-710 (both the above return the range of coverage rather than "the" best result.

Thanks again

A.A.


Comment on Re: Re: Comparing 2-D co-ordinates
Download Code
Re: Re: Re: Comparing 2-D co-ordinates
by BrowserUk (Pope) on Jul 31, 2003 at 15:27 UTC

    Sorry. I'm still misunderstanding you. Given this sample dataset, what 'best result' do you want?

    The index of the largest range?

    The %coverage by that largest range?

    Something else?

    Ie. What output do you want given that input, and how is it derived?


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://279607]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2014-11-27 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (188 votes), past polls