Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Sorting by geographical proximity / clumping groups of items based on X and Y

by DamnDirtyApe (Curate)
on Jul 17, 2002 at 23:22 UTC ( [id://182638]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! /usr/bin/perl
    
    ...
        my ($x1, $y1, $x2, $y2 ) = @_ ;
        return sqrt( abs( $x2 - $x1 )**2 + abs( $y2 - $y1 )**2 ) ;
    }
    
  2. or download this
    #! /usr/bin/perl
    
    ...
    e753 35.6 2.2
    f854 76.5 46.7
    g354 8.7  8.6
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-18 02:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found