Functions | Variables
osetUtils Namespace Reference

Functions

bool isEqual (const double &x, const double &y, const double &epsilon)
 
bool isEqual (const double &x, const double &y)
 
double quadraticFunction (const double &x, const double *a)
 

Variables

INukeOsetcurrentInstance = NULL
 

Function Documentation

bool osetUtils::isEqual ( const double &  x,
const double &  y,
const double &  epsilon 
)
inline

Definition at line 100 of file INukeOset.h.

102  {
103  return std::abs(x - y) < epsilon;
104  }
T abs(T value)
list x
Definition: train.py:276
bool osetUtils::isEqual ( const double &  x,
const double &  y 
)
inline

Definition at line 106 of file INukeOset.h.

107  {
108  static const double epsilon = std::numeric_limits<double>::epsilon();
109  return isEqual (x, y, epsilon);
110  }
bool isEqual(float x1, float x2)
list x
Definition: train.py:276
double osetUtils::quadraticFunction ( const double &  x,
const double *  a 
)
inline

Definition at line 112 of file INukeOset.h.

113  {
114  return a[0] * x * x + a[1] * x + a[2];
115  }
const double a
list x
Definition: train.py:276

Variable Documentation

INukeOset * osetUtils::currentInstance = NULL

Definition at line 5 of file INukeOset.cxx.