Property | Type | Description | |
---|---|---|---|
PARAM_NAMES | String[][] |
Method | Description | |
---|---|---|
CalculateActivation ( int type, double x, double paras, int xOffset, int xLength, int paramOffset ) : void |
Calculate an activation.
|
|
CalculateActivationBIPOLAR ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void |
Calculate the bipolar activation.
|
|
CalculateActivationCOMPETITIVE ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void |
Calculate the competitive activation.
|
|
CalculateActivationDerivative ( int type, double x, double paras, int paramOffset ) : double |
Calculate the derivative of the activation. It is assumed that the value x, which is passed to this method, was the output from this activation. This prevents this method from having to recalculate the activation, just to recalculate the derivative.
|
|
CalculateActivationDerivativeBIPOLAR ( double x, double paras, int paramOffset ) : double |
Calculate the derivative for bipolar activation. It is assumed that the value x, which is passed to this method, was the output from this activation. This prevents this method from having to recalculate the activation, just to recalculate the derivative.
|
|
CalculateActivationDerivativeCOMPETITIVE ( double x, double paras, int paramOffset ) : double |
Calculate the derivative for competitive activation. It is assumed that the value x, which is passed to this method, was the output from this activation. This prevents this method from having to recalculate the activation, just to recalculate the derivative.
|
|
CalculateActivationDerivativeGAUSSIAN ( double x, double paras, int paramOffset ) : double |
Calculate the derivative for gaussian activation. It is assumed that the value x, which is passed to this method, was the output from this activation. This prevents this method from having to recalculate the activation, just to recalculate the derivative.
|
|
CalculateActivationDerivativeLINEAR ( double x, double paras, int paramOffset ) : double |
Calculate the derivative for linear activation. It is assumed that the value x, which is passed to this method, was the output from this activation. This prevents this method from having to recalculate the activation, just to recalculate the derivative.
|
|
CalculateActivationDerivativeLOG ( double x, double paras, int paramOffset ) : double |
Calculate the derivative for log activation. It is assumed that the value x, which is passed to this method, was the output from this activation. This prevents this method from having to recalculate the activation, just to recalculate the derivative.
|
|
CalculateActivationDerivativeRAMP ( double x, double paras, int paramOffset ) : double |
Calculate the derivative for ramp activation. It is assumed that the value x, which is passed to this method, was the output from this activation. This prevents this method from having to recalculate the activation, just to recalculate the derivative.
|
|
CalculateActivationDerivativeSIGMOID ( double x, double paras, int paramOffset ) : double |
Calculate the derivative for sigmoid activation. It is assumed that the value x, which is passed to this method, was the output from this activation. This prevents this method from having to recalculate the activation, just to recalculate the derivative.
|
|
CalculateActivationDerivativeSIN ( double x, double paras, int paramOffset ) : double |
Calculate the derivative for sin activation. It is assumed that the value x, which is passed to this method, was the output from this activation. This prevents this method from having to recalculate the activation, just to recalculate the derivative.
|
|
CalculateActivationDerivativeSOFTMAX ( double x, double paras, int paramOffset ) : double |
Calculate the derivative for softmax activation. It is assumed that the value x, which is passed to this method, was the output from this activation. This prevents this method from having to recalculate the activation, just to recalculate the derivative.
|
|
CalculateActivationDerivativeSTEP ( double x, double paras, int paramOffset ) : double |
Calculate the derivative for step activation. It is assumed that the value x, which is passed to this method, was the output from this activation. This prevents this method from having to recalculate the activation, just to recalculate the derivative.
|
|
CalculateActivationDerivativeTANH ( double x, double paras, int paramOffset ) : double |
Calculate the derivative for tanh activation. It is assumed that the value x, which is passed to this method, was the output from this activation. This prevents this method from having to recalculate the activation, just to recalculate the derivative.
|
|
CalculateActivationGAUSSIAN ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void |
Calculate the gaussian activation.
|
|
CalculateActivationLINEAR ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void |
Calculate the linear activation.
|
|
CalculateActivationLOG ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void |
Calculate the log activation.
|
|
CalculateActivationRAMP ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void |
Calculate the ramp activation.
|
|
CalculateActivationSIGMOID ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void |
Calculate the sigmoid activation.
|
|
CalculateActivationSIN ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void |
Calculate the sin activation.
|
|
CalculateActivationSOFTMAX ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void |
Calculate the softmax activation.
|
|
CalculateActivationSTEP ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void |
Calculate the step activation.
|
|
CalculateActivationTANH ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void |
Calculate the tanh activation.
|
|
CopyParams ( double source, double target, int index ) : int |
Copy parameters. Accounts for variable sized parameters.
|
|
GetParams ( int index ) : String[] |
Get the parameter names for an activation function.
|
Method | Description | |
---|---|---|
ActivationFunctions ( ) : Encog.Engine |
Private constructor.
|
public static CalculateActivation ( int type, double x, double paras, int xOffset, int xLength, int paramOffset ) : void | ||
type | int | The type of activation. |
x | double | The input and output array. Input values are provided and thearray is modified to reflect the output. |
paras | double | |
xOffset | int | The offset into X for where we are calculating. |
xLength | int | The length of the array we are calculating. |
paramOffset | int | The parameter offset. |
return | void |
public static CalculateActivationBIPOLAR ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void | ||
x | double | The input and output array. Input values are provided and thearray is modified to reflect the output. |
paras | double | |
xOffset | int | The offset into X for where we are calculating. |
xLength | int | The length of the array we are calculating. |
paramOffset | int | The parameter offset. |
return | void |
public static CalculateActivationCOMPETITIVE ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void | ||
x | double | The input and output array. Input values are provided and thearray is modified to reflect the output. |
paras | double | |
xOffset | int | The offset into X for where we are calculating. |
xLength | int | The length of the array we are calculating. |
paramOffset | int | The parameter offset. |
return | void |
public static CalculateActivationDerivative ( int type, double x, double paras, int paramOffset ) : double | ||
type | int | The type of activation. |
x | double | The activation to calculate for. |
paras | double | |
paramOffset | int | The offset the parameters begin at. |
return | double |
public static CalculateActivationDerivativeBIPOLAR ( double x, double paras, int paramOffset ) : double | ||
x | double | The activation to calculate for. |
paras | double | |
paramOffset | int | The offset the parameters begin at. |
return | double |
public static CalculateActivationDerivativeCOMPETITIVE ( double x, double paras, int paramOffset ) : double | ||
x | double | The activation to calculate for. |
paras | double | |
paramOffset | int | The offset the parameters begin at. |
return | double |
public static CalculateActivationDerivativeGAUSSIAN ( double x, double paras, int paramOffset ) : double | ||
x | double | The activation to calculate for. |
paras | double | |
paramOffset | int | The offset the parameters begin at. |
return | double |
public static CalculateActivationDerivativeLINEAR ( double x, double paras, int paramOffset ) : double | ||
x | double | The activation to calculate for. |
paras | double | |
paramOffset | int | The offset the parameters begin at. |
return | double |
public static CalculateActivationDerivativeLOG ( double x, double paras, int paramOffset ) : double | ||
x | double | The activation to calculate for. |
paras | double | |
paramOffset | int | The offset the parameters begin at. |
return | double |
public static CalculateActivationDerivativeRAMP ( double x, double paras, int paramOffset ) : double | ||
x | double | The activation to calculate for. |
paras | double | |
paramOffset | int | The offset the parameters begin at. |
return | double |
public static CalculateActivationDerivativeSIGMOID ( double x, double paras, int paramOffset ) : double | ||
x | double | The activation to calculate for. |
paras | double | |
paramOffset | int | The offset the parameters begin at. |
return | double |
public static CalculateActivationDerivativeSIN ( double x, double paras, int paramOffset ) : double | ||
x | double | The activation to calculate for. |
paras | double | |
paramOffset | int | The offset the parameters begin at. |
return | double |
public static CalculateActivationDerivativeSOFTMAX ( double x, double paras, int paramOffset ) : double | ||
x | double | The activation to calculate for. |
paras | double | |
paramOffset | int | The offset the parameters begin at. |
return | double |
public static CalculateActivationDerivativeSTEP ( double x, double paras, int paramOffset ) : double | ||
x | double | The activation to calculate for. |
paras | double | |
paramOffset | int | The offset the parameters begin at. |
return | double |
public static CalculateActivationDerivativeTANH ( double x, double paras, int paramOffset ) : double | ||
x | double | The activation to calculate for. |
paras | double | |
paramOffset | int | The offset the parameters begin at. |
return | double |
public static CalculateActivationGAUSSIAN ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void | ||
x | double | The input and output array. Input values are provided and thearray is modified to reflect the output. |
paras | double | |
xOffset | int | The offset into X for where we are calculating. |
xLength | int | The length of the array we are calculating. |
paramOffset | int | The parameter offset. |
return | void |
public static CalculateActivationLINEAR ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void | ||
x | double | The input and output array. Input values are provided and thearray is modified to reflect the output. |
paras | double | |
xOffset | int | The offset into X for where we are calculating. |
xLength | int | The length of the array we are calculating. |
paramOffset | int | The parameter offset. |
return | void |
public static CalculateActivationLOG ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void | ||
x | double | The input and output array. Input values are provided and thearray is modified to reflect the output. |
paras | double | |
xOffset | int | The offset into X for where we are calculating. |
xLength | int | The length of the array we are calculating. |
paramOffset | int | The parameter offset. |
return | void |
public static CalculateActivationRAMP ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void | ||
x | double | The input and output array. Input values are provided and thearray is modified to reflect the output. |
paras | double | |
xOffset | int | The offset into X for where we are calculating. |
xLength | int | The length of the array we are calculating. |
paramOffset | int | The parameter offset. |
return | void |
public static CalculateActivationSIGMOID ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void | ||
x | double | The input and output array. Input values are provided and thearray is modified to reflect the output. |
paras | double | |
xOffset | int | The offset into X for where we are calculating. |
xLength | int | The length of the array we are calculating. |
paramOffset | int | The parameter offset. |
return | void |
public static CalculateActivationSIN ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void | ||
x | double | The input and output array. Input values are provided and thearray is modified to reflect the output. |
paras | double | |
xOffset | int | The offset into X for where we are calculating. |
xLength | int | The length of the array we are calculating. |
paramOffset | int | The parameter offset. |
return | void |
public static CalculateActivationSOFTMAX ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void | ||
x | double | The input and output array. Input values are provided and thearray is modified to reflect the output. |
paras | double | |
xOffset | int | The offset into X for where we are calculating. |
xLength | int | The length of the array we are calculating. |
paramOffset | int | The parameter offset. |
return | void |
public static CalculateActivationSTEP ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void | ||
x | double | The input and output array. Input values are provided and thearray is modified to reflect the output. |
paras | double | |
xOffset | int | The offset into X for where we are calculating. |
xLength | int | The length of the array we are calculating. |
paramOffset | int | The parameter offset. |
return | void |
public static CalculateActivationTANH ( double x, double paras, int xOffset, int xLength, int paramOffset ) : void | ||
x | double | The input and output array. Input values are provided and thearray is modified to reflect the output. |
paras | double | |
xOffset | int | The offset into X for where we are calculating. |
xLength | int | The length of the array we are calculating. |
paramOffset | int | The parameter offset. |
return | void |
public static CopyParams ( double source, double target, int index ) : int | ||
source | double | The source. |
target | double | The target. |
index | int | The index. |
return | int |
public static GetParams ( int index ) : String[] | ||
index | int | The activation function. |
return | String[] |