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

Function stepFunction

src/RaceNet/RaceNet.cpp:9–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7using namespace std;
8
9double stepFunction(double x)
10{
11 if(x>0.9){
12 return 1.0;
13 }
14 if(x<0.1){
15 return 0.0;
16 }
17 return x;
18}
19
20RaceNet::RaceNet() : net(layerParams, learningRate) {}
21

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected