![]() |
Public API Reference |
A cosine activation function for the neural network property class. More...
#include <propclass/neuralnet.h>
Public Member Functions | |
| virtual void | Function (celData &data) |
| The callback method. Performs the activation function on the data. | |
| virtual celDataType | GetDataType () |
| Returns the type of data upon which this function operates. | |
A cosine activation function for the neural network property class.
The template is valid for T = float and T = any integer type. Attempting to use any other type for the template parameter will result in an error.
This activation function can also be selected with pcneuralnet's "SetActivationFunc" action, with the string parameter "func" set to "cel.activationFunc.TYPE.cos", where TYPE is either int8, int16, int32, uint8, uint16, uint32 or float.
Definition at line 563 of file neuralnet.h.
| virtual void celCosActivationFunc< T >::Function | ( | celData & | data | ) | [inline, virtual] |
The callback method. Performs the activation function on the data.
Implements celNNActivationFunc.
Definition at line 566 of file neuralnet.h.
| virtual celDataType celCosActivationFunc< T >::GetDataType | ( | ) | [inline, virtual] |
Returns the type of data upon which this function operates.
Implements celNNActivationFunc.
Definition at line 571 of file neuralnet.h.