Jpp
16.0.0-rc.1
the software that should make you happy
|
Template class for distance evaluation. More...
#include <JDistance.hh>
Public Types | |
typedef JLANG::JClass < JAbscissa_t >::argument_type | argument_type |
Public Member Functions | |
double | operator() (argument_type first, argument_type second) const |
Get distance between values. More... | |
Static Public Attributes | |
static double | precision = std::numeric_limits<double>::min() |
Default precision. More... | |
Template class for distance evaluation.
This class should be specialised for data types when the distance between two values is not equal to the arithmetic minus operation.
Definition at line 24 of file JDistance.hh.
typedef JLANG::JClass<JAbscissa_t>::argument_type JTOOLS::JDistance< JAbscissa_t >::argument_type |
Definition at line 26 of file JDistance.hh.
|
inline |
Get distance between values.
The distance should be negative, zero or positive if the first value is respectively larger, equal or smaller compared to the second value.
first | first value |
second | second value |
Definition at line 39 of file JDistance.hh.
|
static |
Default precision.
Definition at line 44 of file JDistance.hh.