Template Function otyca::sigmoid_clamp_derivative

Function Documentation

template<typename T>
T otyca::sigmoid_clamp_derivative(T y, T a, T b)

Computes the derivative of the clamped sigmoid function.

Template Parameters:

T – The numeric type.

Parameters:
  • y – The clamped sigmoid function output.

  • a – The lower bound.

  • b – The upper bound.

Returns:

The derivative of the clamped sigmoid function.