Help for this page

Select Code to Download


  1. or download this
    sub makeRatio { 
        my( $d_h ) = @_;
    ...
        my $columns =  $#{ $d_h->[0] }; ## last index of first row
        my @ratio;
    
  2. or download this
        for my $six ( 0 .. $columns ){
            for my $tre ( 0 .. $rows ){
    ...
                    ## for visual matching
                    printf 'my $ratio%d_%d_%d  = $$d_h[%d][%d] / $$d_h[%d]
    +[%d];'."\n",
    
  3. or download this
                        1+$six, 1+$tri, 1+$tre,
                        $tri, $six,
    ...
        return \@ratio ;
    }
    
  4. or download this
    $tri, $six,
    $tre, $six,
    
  5. or download this
    $ratio[ $six ][ $tri ][ $tre ] = $$d_h[ $tri ][ $six ] / $$d_h[ $tre ]
    +[ $six ] ;
    
  6. or download this
    $ratio =  $$d_h[ $tri ][ $six ] / $$d_h[ $tre ][ $six ] ;