Template Function GridKit::Math::sigmoid
Defined in File CommonMath.hpp
Function Documentation
-
template<class ScalarT>
inline ScalarT GridKit::Math::sigmoid(const ScalarT x) Scaled sigmoid activation function.
Note
The sigmoid constant (mu) value is chosen to balance accuracy and finite derivatives. Large values more closely approximate a step function, but can make the transition numerically stiff.
- Template Parameters:
ScalarT – - scalar data type
- Parameters:
x – [in] - expected to be of order 1
- Returns:
value of the sigmoid function