NCBI C++ ToolKit
Functions | Variables
njn_approx.hpp File Reference
#include <corelib/ncbistl.hpp>
#include <float.h>
#include <math.h>
+ Include dependency graph for njn_approx.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

template<typename T >
bool approx (T x_, T y_, T eps_)
 
template<typename T >
bool relApprox (T x_, T y_, T eps_)
 
template<typename T >
bool absRelApprox (T x_, T y_, T tol_, T rtol_)
 
template<typename T >
bool eq (T x_, T y_, T round_)
 
template<typename T >
bool ge (T x_, T y_, T round_)
 
template<typename T >
bool gt (T x_, T y_, T round_)
 
template<typename T >
bool ne (T x_, T y_, T round_)
 
template<typename T >
bool lt (T x_, T y_, T round_)
 
template<typename T >
bool le (T x_, T y_, T round_)
 

Variables

const float FLT_THRESHOLD = 10.0F
 
const float FLT_ROUND = FLT_THRESHOLD * FLT_EPSILON
 
const double DBL_THRESHOLD = 100.0
 
const double DBL_ROUND = DBL_THRESHOLD * DBL_EPSILON
 

Function Documentation

◆ absRelApprox()

template<typename T >
bool absRelApprox ( T  x_,
T  y_,
T  tol_,
T  rtol_ 
)
inline

Definition at line 75 of file njn_approx.hpp.

Referenced by Matrix< T >::absRelApprox().

◆ approx()

template<typename T >
bool approx ( T  x_,
T  y_,
T  eps_ 
)
inline

◆ eq()

template<typename T >
bool eq ( T  x_,
T  y_,
T  round_ 
)
inline

◆ ge()

template<typename T >
bool ge ( T  x_,
T  y_,
T  round_ 
)
inline

Definition at line 80 of file njn_approx.hpp.

References fabs.

Referenced by CreateMimeFromBiostruc(), lt(), parse_regex(), and sendMTFValues().

◆ gt()

template<typename T >
bool gt ( T  x_,
T  y_,
T  round_ 
)
inline

Definition at line 81 of file njn_approx.hpp.

References fabs.

Referenced by le().

◆ le()

template<typename T >
bool le ( T  x_,
T  y_,
T  round_ 
)
inline

◆ lt()

template<typename T >
bool lt ( T  x_,
T  y_,
T  round_ 
)
inline

Definition at line 83 of file njn_approx.hpp.

References ge().

◆ ne()

template<typename T >
bool ne ( T  x_,
T  y_,
T  round_ 
)
inline

◆ relApprox()

template<typename T >
bool relApprox ( T  x_,
T  y_,
T  eps_ 
)
inline

Definition at line 74 of file njn_approx.hpp.

Referenced by isProbDist(), and Matrix< T >::relApprox().

Variable Documentation

◆ DBL_ROUND

const double DBL_ROUND = DBL_THRESHOLD * DBL_EPSILON

Definition at line 55 of file njn_approx.hpp.

◆ DBL_THRESHOLD

const double DBL_THRESHOLD = 100.0

Definition at line 54 of file njn_approx.hpp.

◆ FLT_ROUND

const float FLT_ROUND = FLT_THRESHOLD * FLT_EPSILON

Definition at line 52 of file njn_approx.hpp.

◆ FLT_THRESHOLD

const float FLT_THRESHOLD = 10.0F

Definition at line 51 of file njn_approx.hpp.

Modified on Fri Sep 20 14:57:27 2024 by modify_doxy.py rev. 669887