All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions
Tolerance< double > Class Template Reference

Detailed Description

template<>
class lemon::Tolerance< double >

Double specialization of Tolerance.

See Also
Tolerance

#include <lemon/tolerance.h>

Public Types

typedef double Value
 
 

Public Member Functions

 Tolerance ()
 Constructor setting the epsilon tolerance to the default value.
 
 Tolerance (double e)
 Constructor setting the epsilon tolerance to the given value.
 
Value epsilon () const
 Returns the epsilon value.
 
void epsilon (Value e)
 Sets the epsilon value.
 
Comparisons

See Tolerance for more details.

bool less (Value a, Value b) const
 Returns true if a is surely strictly less than b.
 
bool different (Value a, Value b) const
 Returns true if a is surely different from b.
 
bool positive (Value a) const
 Returns true if a is surely positive.
 
bool negative (Value a) const
 Returns true if a is surely negative.
 
bool nonZero (Value a) const
 Returns true if a is surely non-zero.
 

Static Public Member Functions

static Value defaultEpsilon ()
 Returns the default epsilon value.
 
static void defaultEpsilon (Value e)
 Sets the default epsilon value.
 
static Value zero ()
 Returns zero.