mathkit  1.5
 All Classes Namespaces Functions Variables Typedefs
Public Member Functions | List of all members
mathkit::Epsilon Class Reference

Epsilon functor (test whether |x| < eps). More...

#include <mathkit.hpp>

Public Member Functions

 Epsilon (double eps=1e-6)
 Construct an Epsilon object. More...
 
bool operator() (double val) const
 Test whether |val| < eps. More...
 

Detailed Description

Epsilon functor (test whether |x| < eps).

Definition at line 74 of file mathkit.hpp.

Constructor & Destructor Documentation

mathkit::Epsilon::Epsilon ( double  eps = 1e-6)
inline

Construct an Epsilon object.

Parameters
epsThe threshold value.

Definition at line 82 of file mathkit.hpp.

Member Function Documentation

bool mathkit::Epsilon::operator() ( double  val) const

Test whether |val| < eps.

Parameters
valThe value to test.
Returns
True if |val| < eps else false.

Definition at line 16 of file mathkit.cpp.


The documentation for this class was generated from the following files: