STFINV library: seek source wavelet correction filter
tools.cc
Go to the documentation of this file.
1 
36 #define STFINV_TOOLS_CC_VERSION \
37  "STFINV_TOOLS_CC V1.0"
38 
39 #include <cmath>
40 #include <stfinv/tools.h>
41 
42 namespace stfinv {
43 
44  namespace tools {
45 
46  bool sameineps(const double &a, const double& b, const double& eps)
47  {
48  double reldif=std::abs(a-b);
49  return(reldif<=(std::abs(b*eps)));
50  } // bool sameineps(const double &a, const double& b, const double& eps)
51 
52  } // namespace tools
53 
54 } // namespace stfinv
55 
56 /* ----- END OF tools.cc ----- */
Root namespace of library.
Definition: doxygen.txt:43
bool sameineps(const double &a, const double &b, const double &eps)
function to compare doubles
Definition: tools.cc:46
tools and utilities (prototypes)