Template Function GridKit::Math::deadband1

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:
Parameters:
  • x – [in] - Input signal

  • lower – [in] - Lower breakpoint

  • upper – [in] - Upper breakpoint

Returns:

Smooth no-offset deadbanded value