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

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

Méthodes publiques

Свойство Type Description
PARAM_NAMES String[][]

Méthodes publiques

Méthode 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

Méthode Description
ActivationFunctions ( ) : Encog.Engine

Private constructor.

Method Details

CalculateActivation() public static méthode

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.
Résultat void

CalculateActivationBIPOLAR() public static méthode

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.
Résultat void

CalculateActivationCOMPETITIVE() public static méthode

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.
Résultat void

CalculateActivationDerivative() public static méthode

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.
Résultat double

CalculateActivationDerivativeBIPOLAR() public static méthode

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.
Résultat double

CalculateActivationDerivativeCOMPETITIVE() public static méthode

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.
Résultat double

CalculateActivationDerivativeGAUSSIAN() public static méthode

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.
Résultat double

CalculateActivationDerivativeLINEAR() public static méthode

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.
Résultat double

CalculateActivationDerivativeLOG() public static méthode

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.
Résultat double

CalculateActivationDerivativeRAMP() public static méthode

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.
Résultat double

CalculateActivationDerivativeSIGMOID() public static méthode

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.
Résultat double

CalculateActivationDerivativeSIN() public static méthode

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.
Résultat double

CalculateActivationDerivativeSOFTMAX() public static méthode

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.
Résultat double

CalculateActivationDerivativeSTEP() public static méthode

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.
Résultat double

CalculateActivationDerivativeTANH() public static méthode

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.
Résultat double

CalculateActivationGAUSSIAN() public static méthode

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.
Résultat void

CalculateActivationLINEAR() public static méthode

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.
Résultat void

CalculateActivationLOG() public static méthode

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.
Résultat void

CalculateActivationRAMP() public static méthode

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.
Résultat void

CalculateActivationSIGMOID() public static méthode

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.
Résultat void

CalculateActivationSIN() public static méthode

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.
Résultat void

CalculateActivationSOFTMAX() public static méthode

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.
Résultat void

CalculateActivationSTEP() public static méthode

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.
Résultat void

CalculateActivationTANH() public static méthode

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.
Résultat void

CopyParams() public static méthode

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.
Résultat int

GetParams() public static méthode

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

Property Details

PARAM_NAMES public_oe static_oe property

The names of all of the params.
public static String[][] PARAM_NAMES
Résultat String[][]