Some brief notes for quick reference.
The $\text{Sgn}(x)$ function, see definition of Sign function and implementation by Stef.
The unit saturation function.
A random real number generator via std::uniform_real_distribution.