#include <FeedForwardNeuralNetwork.h>
Public Member Functions | |
| ActivationFunctor (ActivationFunction func, std::valarray< double > &res, double b) | |
| Constructor, use function func and parameter b, and return result in res and. | |
| void | operator() (double x) |
| Do the operation, store value in result[pos] and increment pos. | |
Protected Attributes | |
| ActivationFunction | function |
| pointer to activation function | |
| double | b |
| activation function parameter | |
| std::valarray< double > & | result |
| array to hold result | |
| size_t | pos |
| position in the result array | |
1.4.2