Template Function icrar::isApprox(const std::complex<T>&, const std::complex<T>&, T)¶
Defined in File complex_extensions.h
Function Documentation¶
-
template<typename
T
>
boolicrar
::
isApprox
(const std::complex<T> &lhs, const std::complex<T> &rhs, T threshold)¶ returns true if the magnitude of the difference between two values are approximately equal (within the specified threshold)
- Return
true if left value approximately equals right value
- Return
false if left value does not approximately equals right value
- Template Parameters
T
:
- Parameters
lhs
: left valuerhs
: right valuethreshold
: