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

Method random

src/RaceNet/Network.cpp:139–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139double Network::random(double x) {
140 return (double) (rand() % 10000 + 1) / 10000 - 0.5;
141}
142
143double Network::sigmoid(double x) {
144 return 1 / (1 + exp(-x));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected