Template Function otyca::sigmoid_clamp

Function Documentation

template<typename T>
T otyca::sigmoid_clamp(T x, T a, T b)

Computes a clamped sigmoid function between a and b.

Template Parameters:

T – The numeric type.

Parameters:
  • x – The input value.

  • a – The lower bound.

  • b – The upper bound.

Returns:

The clamped sigmoid function output.