00001 #ifndef STATPROB_HEADER
00002 #define STATPROB_HEADER
00003
00004
00005
00013
00014
00015 #include <stdlib.h>
00016 #include <math.h>
00017
00018 #ifdef _STANDARD_C_PLUS_PLUS
00019 #include <iostream>
00020 #include <iomanip>
00021 using namespace std;
00022 #else
00023 #include <iostream.h>
00024 #include <iomanip.h>
00025 #endif
00026
00027
00028
00029 #include "Rangedimexc.hh"
00030
00031
00032
00033 namespace RazorBack {
00034
00035 class Statprob_
00036 {
00037
00038 private:
00039
00040 static const unsigned int MAXITER;
00041 static const double EPSILON;
00042
00043
00044 public:
00045
00046
00047
00049 static double stdnorm_tail(double z);
00050
00056 static double t_test(unsigned int df, double t);
00057
00064 static double F_test(unsigned int df1, unsigned int df2, double F);
00065
00070 static double chi2_test(unsigned int df, double Chi2);
00071
00076 static double studrange_prob(double q, unsigned int df, unsigned int kno);
00077
00078
00079
00081 static double ibeta_regul(double a, double b, double x);
00082
00087 static double igamma_regul(double a, double x);
00088
00089
00090 protected:
00091
00092 static double gamma_series(double a, double x);
00093 static double gamma_contfrac(double a, double x);
00094 static double beta_contfrac(double a, double b, double x);
00095 };
00096
00097
00098 }
00099
00100
00101
00102 #endif // STATPROB_HEADER