Namespaces | Functions
fuzzy.hpp File Reference

Fuzzy math operators. More...

#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <ecl/type_traits/numeric_limits.hpp>
Include dependency graph for fuzzy.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ecl
 

Embedded control libraries.


Functions

template<typename Scalar , typename OtherScalar >
bool ecl::isApprox (const Scalar &x, const OtherScalar &y, typename numeric_limits< Scalar >::Precision precision=numeric_limits< Scalar >::dummy_precision)
 Checks if two values are approximate.
template<typename Scalar , typename OtherScalar >
bool ecl::isApproxOrLessThan (const Scalar &x, const OtherScalar &y, typename numeric_limits< Scalar >::Precision precision=numeric_limits< Scalar >::dummy_precision)
 Checks if the first value is less than or approximate to the second.

Detailed Description

Fuzzy math operators.

Not really fuzzy math, but simple operators for when values are close to the real deal. This could probably use an epsilon-approximate operator as well.

Date:
Dec 29, 2010

Definition in file fuzzy.hpp.



ecl_math
Author(s): Daniel Stonier
autogenerated on Wed Aug 26 2015 11:27:45