Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Re: Comparing 2-D co-ordinates

by aging acolyte (Pilgrim)
on Jul 31, 2003 at 15:19 UTC ( [id://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


Replies are listed 'Best First'.
Re: Re: Re: Comparing 2-D co-ordinates
by BrowserUk (Patriarch) 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