Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: grouping numbers

by mtmcc (Hermit)
on Jul 11, 2013 at 13:30 UTC ( #1043724=note: print w/ replies, xml ) Need Help??


in reply to Re^2: grouping numbers
in thread grouping numbers

What is significant about those groups of numbers?

Perl can't mind read.

Michael


Comment on Re^3: grouping numbers
Re^4: grouping numbers
by ag4ve (Monk) on Jul 11, 2013 at 13:47 UTC
    Oh, they're 'close' together.
      Compared to -5000 and +5000, they're all 'close' together.

      I think you first need to think about how you would like to define 'close together' and 'far apart' in practical terms, and when you've worked that out, write some code.

      I'm happy to be corrected if I'm missing something...

      Good luck!

        That's why I had $avg - I don't really like taking the average distance to do this (I'd much prefer to have a score system where I get everything and then filter out after) but as I can't even figure this out, I figure this is a good starting point. I could work with it if I got this working at least.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2014-12-22 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls