Help for this page

Select Code to Download


  1. or download this
    sub correlate {
      my ($p1,$p2,$v) = @_;
    ...
      my $cor = $xy / sqrt($x2 * $y2); 
      print "$p1 $p2 $v $cor\n";
    }
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
      my $cor = $sigma / ( $count - 1 ) ;
      print OUT "$p1 $p2 $v $cor\n";
    }