Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Calculating "similarity"

by Anonymous Monk
on Mar 02, 2003 at 01:02 UTC ( [id://239809]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! /usr/local/bin/perl -w
    
    ...
    }
    
    }
    
  2. or download this
    @D1 = map lc $_, $D1 =~ /(\w+)/g ;
    my @D2 = map lc $_, $D2 =~ /(\w+)/g ;
    ...
    my $similarity = 2 * ( $intersection/$total ) ;
    
    print "\n$similarity\n\n" ;
    

Log In?
Username:
Password:

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

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

    No recent polls found