Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Teem::FeedForwardNeuralNetwork::ActivationFunctor Class Reference

#include <FeedForwardNeuralNetwork.h>

List of all members.

Detailed Description

Functor to compute activation function on std::valarray<double> unsing std::for_each.

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

The documentation for this class was generated from the following file:
Generated on Mon Oct 24 17:38:27 2005 for Teem by  doxygen 1.4.2