31 #ifndef GRT_NEURON_HEADER 32 #define GRT_NEURON_HEADER 34 #include "../../../Util/GRTCommon.h" 40 enum Type{LINEAR=0,SIGMOID,BIPOLAR_SIGMOID,TANH,NUMBER_OF_ACTIVATION_FUNCTIONS};
50 bool init(
const UINT numInputs,
const Type actvationFunction,
Random &random,
const Float minWeightRange = -0.1,
const Float maxWeightRange = 0.1,
const Float minBiasRange = -0.1,
const Float maxBiasRange = 0.1);
53 Float getDerivative(
const Float &y);
55 static bool validateActivationFunction(
const Type activationFunction);
59 Float previousBiasUpdate;
63 UINT activationFunction;
68 #endif //GRT_NEURON_HEADER This file contains the Random class, a useful wrapper for generating cross platform random functions...