C# Class Encog.Engine.Network.Flat.ActivationFunctions

The activation functions used by the flat networks.
Exibir arquivo Open project: encog/encog-silverlight-core Class Usage Examples

Public Properties

Property Type Description
PARAM_NAMES String[][]

Public Methods

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.

Private Methods

Method Description
ActivationFunctions ( ) : Encog.Engine

Private constructor.

Method Details

CalculateActivation() public static method

Calculate an activation.
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

CalculateActivationBIPOLAR() public static method

Calculate the bipolar activation.
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

CalculateActivationCOMPETITIVE() public static method

Calculate the competitive activation.
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

CalculateActivationDerivative() public static method

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.
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

CalculateActivationDerivativeBIPOLAR() public static method

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.
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

CalculateActivationDerivativeCOMPETITIVE() public static method

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.
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

CalculateActivationDerivativeGAUSSIAN() public static method

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.
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

CalculateActivationDerivativeLINEAR() public static method

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.
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

CalculateActivationDerivativeLOG() public static method

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.
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

CalculateActivationDerivativeRAMP() public static method

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.
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

CalculateActivationDerivativeSIGMOID() public static method

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.
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

CalculateActivationDerivativeSIN() public static method

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.
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

CalculateActivationDerivativeSOFTMAX() public static method

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.
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

CalculateActivationDerivativeSTEP() public static method

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.
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

CalculateActivationDerivativeTANH() public static method

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.
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

CalculateActivationGAUSSIAN() public static method

Calculate the gaussian activation.
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

CalculateActivationLINEAR() public static method

Calculate the linear activation.
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

CalculateActivationLOG() public static method

Calculate the log activation.
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

CalculateActivationRAMP() public static method

Calculate the ramp activation.
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

CalculateActivationSIGMOID() public static method

Calculate the sigmoid activation.
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

CalculateActivationSIN() public static method

Calculate the sin activation.
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

CalculateActivationSOFTMAX() public static method

Calculate the softmax activation.
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

CalculateActivationSTEP() public static method

Calculate the step activation.
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

CalculateActivationTANH() public static method

Calculate the tanh activation.
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

CopyParams() public static method

Copy parameters. Accounts for variable sized parameters.
public static CopyParams ( double source, double target, int index ) : int
source double The source.
target double The target.
index int The index.
return int

GetParams() public static method

Get the parameter names for an activation function.
public static GetParams ( int index ) : String[]
index int The activation function.
return String[]

Property Details

PARAM_NAMES public_oe static_oe property

The names of all of the params.
public static String[][] PARAM_NAMES
return String[][]