C# Class Accord.Neuro.LinearFunction

Inheritance: IActivationFunction
Exibir arquivo Open project: accord-net/framework

Public Methods

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

LinearFunction ( ) : System

Initializes a new instance of the LinearFunction class.

LinearFunction ( DoubleRange range ) : System

Initializes a new instance of the LinearFunction class.

LinearFunction ( double alpha ) : System

Initializes a new instance of the LinearFunction class.

LinearFunction ( double alpha, DoubleRange range ) : System

Initializes a new instance of the LinearFunction class.

Method Details

Derivative() public method

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

Derivative2() public method

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

Function() public method

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

LinearFunction() public method

Initializes a new instance of the LinearFunction class.
public LinearFunction ( ) : System
return System

LinearFunction() public method

Initializes a new instance of the LinearFunction class.
public LinearFunction ( DoubleRange range ) : System
range AForge.DoubleRange
return System

LinearFunction() public method

Initializes a new instance of the LinearFunction class.
public LinearFunction ( double alpha ) : System
alpha double
return System

LinearFunction() public method

Initializes a new instance of the LinearFunction class.
public LinearFunction ( double alpha, DoubleRange range ) : System
alpha double
range AForge.DoubleRange
return System