$search

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:

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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


ecl_math
Author(s): Daniel Stonier (d.stonier@gmail.com)
autogenerated on Fri Mar 1 15:21:32 2013