Template Function GridKit::Math::deadband1
Defined in File CommonMath.hpp
Function Documentation
-
template<class ScalarT, typename RealT>
inline ScalarT GridKit::Math::deadband1(const ScalarT x, const RealT lower, const RealT upper) Smooth Type 1 no-offset two-sided deadband function.
Smooth approximation to a deadband that returns zero inside the band and passes the input through unchanged outside the band.
- Template Parameters:
ScalarT – - scalar data type
RealT – - Real data type (see GridKit::ScalarTraits<ScalarT>::RealT)
- Parameters:
x – [in] - Input signal
lower – [in] - Lower breakpoint
upper – [in] - Upper breakpoint
- Returns:
Smooth no-offset deadbanded value