| 137 | } |
| 138 | |
| 139 | double Network::random(double x) { |
| 140 | return (double) (rand() % 10000 + 1) / 10000 - 0.5; |
| 141 | } |
| 142 | |
| 143 | double Network::sigmoid(double x) { |
| 144 | return 1 / (1 + exp(-x)); |
nothing calls this directly
no outgoing calls
no test coverage detected