Subject: | calling percentiles when there is no data shouldn't die |
Currently if you do this:
my $stat = Statistics::Descriptive::Full->new();
my $x = $stat->percentile(100);
the module dies, throwing a division by zero error.
I think it would be more consistent and better for callers if the
percentile method simply returned undef in this case, like it does in
other situations where it doesn't have enough data to calculate a
particular percentile.