Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    my $stat = Statistics::Descriptive::Full->new(); 
    $stat->add_data(@data); 
    print $stat->quantile(1), "\n";
    
  2. or download this
    #!/usr/local/bin/perl
    
    ...
        my $percentile = int($p * $#{$aref}/100);
        return (sort @$aref)[$percentile];
    }