Go to the source code of this file.
Classes | |
struct | ThreeProbs |
Macros | |
#define | _MAX_EXPONENT 960 |
#define | add_dd dd_add_d_d |
#define | add_DD dd_add |
#define | add_Dd dd_add_dd_d |
#define | add_dD dd_add_d_dd |
#define | CLIP(X, LOW, HIGH) ((X) < LOW ? LOW : MIN(X, HIGH)) |
#define | div_dd dd_div_d_d |
#define | div_DD dd_div |
#define | div_Dd dd_div_dd_d |
#define | div_dD dd_div_d_dd |
#define | frexpD dd_frexp |
#define | KOLMOG_CUTOVER 0.82 |
#define | ldexpD dd_ldexp |
#define | log1pD dd_log1p |
#define | logD dd_log |
#define | LOGSQRT2PI 0.91893853320467274178032973640561764 |
#define | MAX(a, b) (((a) < (b)) ? (b) : (a)) |
#define | MIN(a, b) (((a) < (b)) ? (a) : (b)) |
#define | mul_dd dd_mul_d_d |
#define | mul_DD dd_mul |
#define | mul_Dd dd_mul_dd_d |
#define | mul_dD dd_mul_d_dd |
#define | neg_D dd_neg |
#define | RETURN_3PROBS(PSF, PCDF, PDF) |
#define | RETURN_M_E(MAND, EXPT) |
#define | SM_UPPER_MAX_TERMS 3 |
#define | SM_UPPERSUM_MIN_N 10 |
#define | sub_dd dd_sub_d_d |
#define | sub_DD dd_sub |
#define | sub_Dd dd_sub_dd_d |
#define | sub_dD dd_sub_d_dd |
#define | valueD dd_to_double |
Typedefs | |
typedef struct ThreeProbs | ThreeProbs |
Functions | |
static double | _kolmogi (double psf, double pcdf) |
static ThreeProbs | _kolmogorov (double x) |
static ThreeProbs | _smirnov (int n, double x) |
static double | _smirnovi (int n, double psf, double pcdf) |
static int | _within_tol (double x, double y, double atol, double rtol) |
static void | computeAv (int n, double x, int v, double2 Cman, int Cexpt, double2 *pt1, double2 *pt2, double2 *pAv) |
double | kolmogc (double x) |
double | kolmogci (double p) |
double | kolmogi (double p) |
double | kolmogorov (double x) |
double | kolmogp (double x) |
static double | logpow4 (double a, double b, double c, double d, int m) |
static double2 | logpow4_D (double a, double b, double c, double d, int m) |
static double | modNX (int n, double x, int *pNXFloor, double *pNX) |
static double | nextPowerOf2 (double x) |
static double | pow2 (double a, double b, int m) |
static double2 | pow2Scaled_D (double2 a, int m, int *pExponent) |
static double | pow4 (double a, double b, double c, double d, int m) |
static double2 | pow4_D (double a, double b, double c, double d, int m) |
static double2 | pow_D (double2 a, int m) |
double | smirnov (int n, double d) |
double | smirnovc (int n, double d) |
double | smirnovci (int n, double p) |
double | smirnovi (int n, double p) |
double | smirnovp (int n, double d) |
static void | updateBinomial (double2 *Cman, int *Cexpt, int n, int j) |
Variables | |
static const double | _rtol = 2*DBL_EPSILON |
static const double | _xtol = DBL_EPSILON |
static const int | MIN_EXPABLE = (-708 - 38) |
double | MINLOG |
const int | SMIRNOV_MAX_COMPUTE_N = 1000000 |
#define _MAX_EXPONENT 960 |
Definition at line 549 of file kolmogorov.c.
#define add_dd dd_add_d_d |
Definition at line 131 of file kolmogorov.c.
#define add_DD dd_add |
Definition at line 136 of file kolmogorov.c.
#define add_Dd dd_add_dd_d |
Definition at line 140 of file kolmogorov.c.
#define add_dD dd_add_d_dd |
Definition at line 141 of file kolmogorov.c.
Definition at line 85 of file kolmogorov.c.
#define div_dd dd_div_d_d |
Definition at line 135 of file kolmogorov.c.
#define div_DD dd_div |
Definition at line 139 of file kolmogorov.c.
#define div_Dd dd_div_dd_d |
Definition at line 146 of file kolmogorov.c.
#define div_dD dd_div_d_dd |
Definition at line 147 of file kolmogorov.c.
#define frexpD dd_frexp |
Definition at line 148 of file kolmogorov.c.
#define KOLMOG_CUTOVER 0.82 |
Definition at line 63 of file kolmogorov.c.
#define ldexpD dd_ldexp |
Definition at line 149 of file kolmogorov.c.
#define log1pD dd_log1p |
Definition at line 151 of file kolmogorov.c.
#define logD dd_log |
Definition at line 150 of file kolmogorov.c.
#define LOGSQRT2PI 0.91893853320467274178032973640561764 |
Definition at line 100 of file kolmogorov.c.
#define mul_dd dd_mul_d_d |
Definition at line 133 of file kolmogorov.c.
#define mul_DD dd_mul |
Definition at line 138 of file kolmogorov.c.
#define mul_Dd dd_mul_dd_d |
Definition at line 144 of file kolmogorov.c.
#define mul_dD dd_mul_d_dd |
Definition at line 145 of file kolmogorov.c.
#define neg_D dd_neg |
Definition at line 134 of file kolmogorov.c.
#define RETURN_3PROBS | ( | PSF, | |
PCDF, | |||
) |
Definition at line 110 of file kolmogorov.c.
#define RETURN_M_E | ( | MAND, | |
EXPT | |||
) |
Definition at line 551 of file kolmogorov.c.
#define SM_UPPER_MAX_TERMS 3 |
Definition at line 78 of file kolmogorov.c.
#define SM_UPPERSUM_MIN_N 10 |
Definition at line 79 of file kolmogorov.c.
#define sub_dd dd_sub_d_d |
Definition at line 132 of file kolmogorov.c.
#define sub_DD dd_sub |
Definition at line 137 of file kolmogorov.c.
#define sub_Dd dd_sub_dd_d |
Definition at line 142 of file kolmogorov.c.
#define sub_dD dd_sub_d_dd |
Definition at line 143 of file kolmogorov.c.
#define valueD dd_to_double |
Definition at line 130 of file kolmogorov.c.
typedef struct ThreeProbs ThreeProbs |
|
static |
Definition at line 256 of file kolmogorov.c.
|
static |
Definition at line 159 of file kolmogorov.c.
|
static |
Definition at line 715 of file kolmogorov.c.
|
static |
Definition at line 903 of file kolmogorov.c.
|
static |
Definition at line 120 of file kolmogorov.c.
|
static |
Definition at line 695 of file kolmogorov.c.
double kolmogc | ( | double | x | ) |
Definition at line 393 of file kolmogorov.c.
double kolmogci | ( | double | p | ) |
Definition at line 429 of file kolmogorov.c.
double kolmogi | ( | double | p | ) |
Definition at line 417 of file kolmogorov.c.
double kolmogorov | ( | double | x | ) |
Definition at line 384 of file kolmogorov.c.
double kolmogp | ( | double | x | ) |
Definition at line 402 of file kolmogorov.c.
|
static |
Definition at line 684 of file kolmogorov.c.
Definition at line 650 of file kolmogorov.c.
Definition at line 460 of file kolmogorov.c.
|
static |
Definition at line 444 of file kolmogorov.c.
|
static |
Definition at line 540 of file kolmogorov.c.
Definition at line 557 of file kolmogorov.c.
|
static |
Definition at line 642 of file kolmogorov.c.
Definition at line 619 of file kolmogorov.c.
Definition at line 508 of file kolmogorov.c.
double smirnov | ( | int | n, |
double | d | ||
) |
Definition at line 1079 of file kolmogorov.c.
double smirnovc | ( | int | n, |
double | d | ||
) |
Definition at line 1090 of file kolmogorov.c.
double smirnovci | ( | int | n, |
double | p | ||
) |
Definition at line 1141 of file kolmogorov.c.
double smirnovi | ( | int | n, |
double | p | ||
) |
Definition at line 1132 of file kolmogorov.c.
double smirnovp | ( | int | n, |
double | d | ||
) |
Definition at line 1106 of file kolmogorov.c.
Definition at line 495 of file kolmogorov.c.
|
static |
Definition at line 117 of file kolmogorov.c.
|
static |
Definition at line 116 of file kolmogorov.c.
|
static |
Definition at line 97 of file kolmogorov.c.
const int SMIRNOV_MAX_COMPUTE_N = 1000000 |
Definition at line 70 of file kolmogorov.c.