TPCCLIB
|
Functions for using normal distribution. More...
#include "libtpcmodel.h"
Go to the source code of this file.
Functions | |
double | ndtr (double a) |
double | normal_pvalue_2 (double x) |
double | normal_pvalue_1 (double x) |
Functions for using normal distribution.
Definition in file normaldistr.c.
double ndtr | ( | double | a | ) |
Calculates the area under the Gaussian probability density function integrated from minus infinity to given value a. For more information search for the Cephes C codes.
a | variable a |
Definition at line 17 of file normaldistr.c.
Referenced by normal_pvalue_1(), normal_pvalue_2(), and runs_test().
double normal_pvalue_1 | ( | double | x | ) |
Calculates the one-sided p-value for x in relation to the standard normal distribution (that is, the probability that a random variable distributed as N(0, 1) is greater than x).
x | double-precision value x |
Definition at line 60 of file normaldistr.c.
double normal_pvalue_2 | ( | double | x | ) |
Calculates the two-sided p-value for x in relation to the standard normal distribution.
x | double-precision value x |
Definition at line 43 of file normaldistr.c.