40 #ifndef _NUMCONSTANTS_H_ 41 #define _NUMCONSTANTS_H_ 71 static double MEGA() {
return 1e6; }
72 static double KILO() {
return 1e3; }
73 static double DECI() {
return 1e-1; }
74 static double CENTI() {
return 1e-2; }
75 static double MILLI() {
return 1e-3; }
76 static double MICRO() {
return 1e-6; }
77 static double NANO() {
return 1e-9; }
78 static double PICO() {
return 1e-12; }
80 static double SMALL() {
return 1e-6; }
81 static double TINY() {
return 1e-12; }
83 static double VERY_BIG() {
return static_cast<double>(1.7E+23); }
90 static double INF() {
return std::numeric_limits<double>::has_infinity ? -log(0) : std::numeric_limits<double>::max(); }
91 static double PINF() {
return std::numeric_limits<double>::has_infinity ? -log(0) : std::numeric_limits<double>::max(); }
92 static double MINF() {
return std::numeric_limits<double>::has_infinity ? log(0) : std::numeric_limits<double>::min(); }
93 static double NaN() {
return NAN; }
96 static double PI() {
return 3.141593; }
101 #endif //_NUMCONSTANTS_H_ this static class contains several useful constant values.
This class allows to perform a correspondence analysis.
static double GOLDEN_RATIO_PHI()
static double VERY_TINY()
static double GOLDEN_RATIO_C()
static double GOLDEN_RATIO_R()