GPLIB++
IdentityActivationFunction.cpp
Go to the documentation of this file.
2 #include <iostream>
3 
4 namespace gplib
5  {
7  {
8  }
10  {
11  }
12 
13  double IdentityActivationFunction::CalcOutput(const double input)
14  {
15  return input;
16  }
17 
18  double IdentityActivationFunction::CalcDeriv(const double input)
19  {
20  return 1.0;
21  }
22  }
virtual double CalcOutput(const double input)
The function that maps between the weighted sum that's the input of the neuron and the output...
virtual double CalcDeriv(const double input)
The derivative of the function defined in CalcOutput.