MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / sigmoid

Method sigmoid

src/RaceNet/Network.cpp:143–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143double Network::sigmoid(double x) {
144 return 1 / (1 + exp(-x));
145}
146
147double Network::sigmoidePrime(double x) {
148 return exp(-x) / (pow(1 + exp(-x), 2));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected