C# Class SharpNeat.Network.Gaussian

Gaussian activation function. Output range is 0 to 1, that is, the tails of the Gaussian distribution curve tend towards 0 as abs(x) -> Infinity and the Gaussian peak is at x = 0.
Inheritance: IActivationFunction
Afficher le fichier Open project: colgreen/sharpneat

Méthodes publiques

Свойство Type Description
__DefaultInstance IActivationFunction

Méthodes publiques

Méthode Description
Calculate ( double x, double auxArgs ) : double

Calculates the output value for the specified input value and optional activation function auxiliary arguments.

Calculate ( float x, float auxArgs ) : float

Calculates the output value for the specified input value and optional activation function auxiliary arguments. This single precision overload of Calculate() will be used in neural network code that has been specifically written to use floats instead of doubles.

GetRandomAuxArgs ( XorShiftRandom rng, double connectionWeightRange ) : double[]

For activation functions that accept auxiliary arguments; generates random initial values for aux arguments for newly added nodes (from an 'add neuron' mutation).

MutateAuxArgs ( double auxArgs, XorShiftRandom rng, ZigguratGaussianSampler gaussianSampler, double connectionWeightRange ) : void

Genetic mutation for auxiliary argument data.

Method Details

Calculate() public méthode

Calculates the output value for the specified input value and optional activation function auxiliary arguments.
public Calculate ( double x, double auxArgs ) : double
x double
auxArgs double
Résultat double

Calculate() public méthode

Calculates the output value for the specified input value and optional activation function auxiliary arguments. This single precision overload of Calculate() will be used in neural network code that has been specifically written to use floats instead of doubles.
public Calculate ( float x, float auxArgs ) : float
x float
auxArgs float
Résultat float

GetRandomAuxArgs() public méthode

For activation functions that accept auxiliary arguments; generates random initial values for aux arguments for newly added nodes (from an 'add neuron' mutation).
public GetRandomAuxArgs ( XorShiftRandom rng, double connectionWeightRange ) : double[]
rng Redzen.Numerics.XorShiftRandom
connectionWeightRange double
Résultat double[]

MutateAuxArgs() public méthode

Genetic mutation for auxiliary argument data.
public MutateAuxArgs ( double auxArgs, XorShiftRandom rng, ZigguratGaussianSampler gaussianSampler, double connectionWeightRange ) : void
auxArgs double
rng Redzen.Numerics.XorShiftRandom
gaussianSampler ZigguratGaussianSampler
connectionWeightRange double
Résultat void

Property Details

__DefaultInstance public_oe static_oe property

Default instance provided as a public static field.
public static IActivationFunction __DefaultInstance
Résultat IActivationFunction