| Included libraries | Package variables | General documentation | Methods |
| Package variables | Top |
| No package variables defined. |
| Included modules | Top |
| Clair::Statistics::Distributions::DistBase |
| Inherit | Top |
| Clair::Statistics::Distributions::DistBase |
| Synopsis | Top |
| Description | Top |
| Methods | Top |
| _subt | No description | Code |
| _subtprob | No description | Code |
| _subu | No description | Code |
| get_dist | No description | Code |
| get_prob | No description | Code |
| tdistr | No description | Code |
| tprob | No description | Code |
| _subt | description | prev | next | Top |
sub _subt
{ my ($self, $n, $p) = @_;
if ($p >= 1 || $p <= 0) {
die "Invalid p: $p\n";
}
if ($p == 0.5) {
return 0;
} elsif ($p < 0.5) {
return - $self->_subt($n, 1 - $p);
}
my $u = $self->_subu($p);
my $u2 = $u ** 2;
my $a = ($u2 + 1) / 4;} |
| _subtprob | description | prev | next | Top |
sub _subtprob
{my ($self, $n, $x) = @_; my ($a,$b); my $w = atan2($x / sqrt($n), 1);} |
| _subu | description | prev | next | Top |
sub _subu
{ my ($self, $p) = @_;
my $y = -log(4 * $p * (1 - $p));
my $x = sqrt(
$y * (1.570796288
+ $y * (.03706987906
+ $y * (-.8364353589E-3
+ $y *(-.2250947176E-3
+ $y * (.6841218299E-5
+ $y * (0.5824238515E-5
+ $y * (-.104527497E-5
+ $y * (.8360937017E-7
+ $y * (-.3231081277E-8
+ $y * (.3657763036E-10
+ $y *.6936233982E-12)))))))))));
$x = -$x if ($p>.5);
return $x;} |
| get_dist | description | prev | next | Top |
sub get_dist
{my ($self, $n, $p) = @_; return $self->tdistr($n, $p);} |
| get_prob | description | prev | next | Top |
sub get_prob
{my ($self, $n, $x) = @_; return $self->tprob($n, $x);} |
| tdistr | description | prev | next | Top |
sub tdistr
{# Percentage points t(x,n) my ($self, $n, $p) = @_;} |
| tprob | description | prev | next | Top |
sub tprob
{# Upper probability t(x,n) my ($self, $n, $x) = @_;} |