MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / activation

Method activation

machine_learning/adaline_learning.cpp:186–186  ·  view source on GitHub ↗

Defines activation function as Heaviside's step function. * \f[ * f(x) = \begin{cases} * -1 & \forall x \le 0\\ * 1 & \forall x > 0 * \end{cases} * \f] * @param x input value to apply activation on * @return activation output */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected