Jpp  16.0.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Attributes | List of all members
JTOOLS::JDistance< JAbscissa_t > Struct Template Reference

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...
 

Detailed Description

template<class JAbscissa_t>
struct JTOOLS::JDistance< JAbscissa_t >

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.

Member Typedef Documentation

template<class JAbscissa_t>
typedef JLANG::JClass<JAbscissa_t>::argument_type JTOOLS::JDistance< JAbscissa_t >::argument_type

Definition at line 26 of file JDistance.hh.

Member Function Documentation

template<class JAbscissa_t>
double JTOOLS::JDistance< JAbscissa_t >::operator() ( argument_type  first,
argument_type  second 
) const
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.

Parameters
firstfirst value
secondsecond value
Returns
distance

Definition at line 39 of file JDistance.hh.

40  {
41  return second - first;
42  }
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first

Member Data Documentation

template<class JAbscissa_t>
double JTOOLS::JDistance< JAbscissa_t >::precision = std::numeric_limits<double>::min()
static

Default precision.

Definition at line 44 of file JDistance.hh.


The documentation for this struct was generated from the following file: