CEL

Public API Reference

celStepActivationFunc< T > Class Template Reference

A threshold activation function for the neural network property class. More...

#include <propclass/neuralnet.h>

Inheritance diagram for celStepActivationFunc< T >:

Inheritance graph
[legend]
List of all members.

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.
virtual ~celStepActivationFunc ()

Detailed Description

template<typename T>
class celStepActivationFunc< T >

A threshold 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 "cel.action.SetActivationFunc" action, with the string parameter "cel.parameter.func" set to "cel.activationFunc.TYPE.step", where TYPE is either int8, int16, int32, uint8, uint16, uint32 or float.

Definition at line 348 of file neuralnet.h.


Member Function Documentation

template<typename T>
virtual void celStepActivationFunc< T >::Function ( celData data  )  [inline, virtual]

The callback method. Performs the activation function on the data.

Implements celNNActivationFunc.

Definition at line 351 of file neuralnet.h.

References celData::Set().

template<typename T>
virtual celDataType celStepActivationFunc< T >::GetDataType (  )  [inline, virtual]

Returns the type of data upon which this function operates.

Implements celNNActivationFunc.

Definition at line 356 of file neuralnet.h.


The documentation for this class was generated from the following file:
Generated for CEL: Crystal Entity Layer 1.2 by doxygen 1.4.7