00001 #ifndef ERRORFUNCTION_H
00002 #define ERRORFUNCTION_H
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef ZMENVIRONMENT_H
00012 #include "ZMutility/ZMenvironment.h"
00013 #endif
00014 #include <utility>
00015
00016 ZM_BEGIN_NAMESPACE( zmsf )
00017
00018 typedef std::pair<double,double> Dpair;
00019
00024
00025 struct ErrorFunction {
00026
00028 static double Erfc( const double x );
00029
00031 static Dpair ErfcErr( const double x );
00032
00034 static double lnErfc( const double x );
00035
00037 static Dpair lnErfcErr( const double x );
00038
00040 static double Erf( const double x );
00041
00043 static Dpair ErfErr( const double y );
00044
00046 static double ProbZ( const double x );
00047
00049 static Dpair ProbZErr( const double x );
00050
00052 static double ProbQ( const double x );
00053
00055 static Dpair ProbQErr( const double x );
00056
00057 };
00058
00059 ZM_END_NAMESPACE( zmsf )
00060
00061 #endif