SDDSlib
|
Routines for Student's t distribution, the F distribution, the linear-correlation coefficient distribution, and Poisson distribution. More...
#include "mdb.h"
Go to the source code of this file.
Functions | |
double | normSigLevel (double z0, long tails) |
Computes the probability that a standard normal variable exceeds a given value. | |
double | ChiSqrSigLevel (double ChiSquared0, long nu) |
Computes the probability that a chi-squared variable exceeds a given value. | |
double | tTailSigLevel (double t0, long nu, long tails) |
Computes the probability that the absolute value of a t-distributed variable exceeds a given value. | |
double | FSigLevel (double var1, double var2, long nu1, long nu2) |
Computes the probability that an F-distributed variable exceeds a given value. | |
double | rSigLevel (double r0, long nu) |
Computes the probability that the linear correlation coefficient exceeds a given value. | |
double | poissonSigLevel (long n, double n0) |
Computes the probability that a Poisson-distributed random variable exceeds or equals a given value. | |
Routines for Student's t distribution, the F distribution, the linear-correlation coefficient distribution, and Poisson distribution.
Definition in file sigLevel.c.
double ChiSqrSigLevel | ( | double | ChiSquared0, |
long | nu ) |
Computes the probability that a chi-squared variable exceeds a given value.
This function calculates the probability that a chi-squared random variable with nu
degrees of freedom exceeds ChiSquared0
.
ChiSquared0 | The chi-squared value for which the probability is computed. |
nu | The degrees of freedom of the chi-squared distribution. |
ChiSquared0
for nu
degrees of freedom. Returns -1 if ChiSquared0
is negative. Definition at line 64 of file sigLevel.c.
double FSigLevel | ( | double | var1, |
double | var2, | ||
long | nu1, | ||
long | nu2 ) |
Computes the probability that an F-distributed variable exceeds a given value.
This function calculates the probability that an F-distributed random variable with nu1
and nu2
degrees of freedom exceeds F0, where F0 is defined as Max(var1, var2) / Min(var1, var2).
var1 | The first variance. |
var2 | The second variance. |
nu1 | The degrees of freedom associated with var1 . |
nu2 | The degrees of freedom associated with var2 . |
nu1
and nu2
degrees of freedom. Definition at line 101 of file sigLevel.c.
double normSigLevel | ( | double | z0, |
long | tails ) |
Computes the probability that a standard normal variable exceeds a given value.
This function calculates the probability that a standard normal random variable Z satisfies Z > z0.
z0 | The value for which the probability is computed. |
tails | Specifies whether to compute a one-tailed (1) or two-tailed (2) probability. |
Definition at line 40 of file sigLevel.c.
double poissonSigLevel | ( | long | n, |
double | n0 ) |
Computes the probability that a Poisson-distributed random variable exceeds or equals a given value.
This function calculates the probability that the number of events n
is greater than or equal to a specified value n0
, given a Poisson distribution with an expected number of events n0
.
n | The number of events observed. |
n0 | The expected number of events. |
n
or more events are observed given a Poisson distribution with n0
expected events. Definition at line 141 of file sigLevel.c.
double rSigLevel | ( | double | r0, |
long | nu ) |
Computes the probability that the linear correlation coefficient exceeds a given value.
This function calculates the probability that the linear correlation coefficient r
exceeds |r0| for nu
degrees of freedom.
r0 | The correlation coefficient value. |
nu | The degrees of freedom. |
nu
degrees of freedom. Returns -1 if nu
is less than 2 or if r0
is not in the valid range. Definition at line 120 of file sigLevel.c.
double tTailSigLevel | ( | double | t0, |
long | nu, | ||
long | tails ) |
Computes the probability that the absolute value of a t-distributed variable exceeds a given value.
This function calculates the probability that |t| > t0 for a t-distribution with nu
degrees of freedom.
t0 | The t-value for which the probability is computed. |
nu | The degrees of freedom of the t-distribution. |
tails | Specifies whether to compute a one-tailed (1) or two-tailed (2) probability. |
t0
for nu
degrees of freedom. Returns -1 if the number of tails is invalid. Definition at line 82 of file sigLevel.c.