C# Class Accord.Neuro.ActivationFunctions.BernoulliFunction

Inheritance: IStochasticFunction
Afficher le fichier Open project: accord-net/framework Class Usage Examples

Méthodes publiques

Méthode Description
BernoulliFunction ( ) : System

Initializes a new instance of the BernoulliFunction class.

BernoulliFunction ( double alpha ) : System

Initializes a new instance of the BernoulliFunction class.

Derivative ( double x ) : double

Calculates function derivative.

The method calculates function derivative at point x.

Derivative2 ( double y ) : double

Calculates function derivative.

The method calculates the same derivative value as the Derivative method, but it takes not the input x value itself, but the function value, which was calculated previously with the help of Function method.

Some applications require as function value, as derivative value, so they can save the amount of calculations using this method to calculate derivative.

Function ( double x ) : double

Calculates function value.

The method calculates function value at point x.

Generate ( double x ) : double

Samples a value from the function given a input value.

Generate2 ( double y ) : double

Samples a value from the function given a function output value.

The method calculates the same output value as the Generate method, but it takes not the input x value itself, but the function value, which was calculated previously with help of the IActivationFunction.Function(double) method.

Method Details

BernoulliFunction() public méthode

Initializes a new instance of the BernoulliFunction class.
public BernoulliFunction ( ) : System
Résultat System

BernoulliFunction() public méthode

Initializes a new instance of the BernoulliFunction class.
public BernoulliFunction ( double alpha ) : System
alpha double Sigmoid's alpha value. Default is 1.
Résultat System

Derivative() public méthode

Calculates function derivative.
The method calculates function derivative at point x.
public Derivative ( double x ) : double
x double Function input value.
Résultat double

Derivative2() public méthode

Calculates function derivative.

The method calculates the same derivative value as the Derivative method, but it takes not the input x value itself, but the function value, which was calculated previously with the help of Function method.

Some applications require as function value, as derivative value, so they can save the amount of calculations using this method to calculate derivative.

public Derivative2 ( double y ) : double
y double Function output value - the value, which was obtained /// with the help of method.
Résultat double

Function() public méthode

Calculates function value.
The method calculates function value at point x.
public Function ( double x ) : double
x double Function input value.
Résultat double

Generate() public méthode

Samples a value from the function given a input value.
public Generate ( double x ) : double
x double Function input value.
Résultat double

Generate2() public méthode

Samples a value from the function given a function output value.

The method calculates the same output value as the Generate method, but it takes not the input x value itself, but the function value, which was calculated previously with help of the IActivationFunction.Function(double) method.

public Generate2 ( double y ) : double
y double The function output value. This is the value which was obtained /// with the help of the method.
Résultat double