Subject: | percentile method does not work as expected |
Date: | Mon, 11 Oct 2010 22:35:08 +0200 |
To: | bug-Statistics-Descriptive [...] rt.cpan.org |
From: | David Breimann <david.breimann [...] gmail.com> |
An example:
use strict;
use warnings;
use Statistics::Descriptive;
use 5.012;
my @data = ( -2, 7, 7, 4, 18, -5 );
my $stat = Statistics::Descriptive::Full->new();
$stat->add_data(@data);
say ($stat->percentile(100) // "undef"); # return 18. OK.
say ($stat->percentile(0) // "undef"); # return undef instead of
"-inf" according to the doc
Also see http://stackoverflow.com/questions/3905623/
Thank you
Dave