Calculates function derivative.

Namespace:  AForge.Neuro
Assembly:  AForge.Neuro (in AForge.Neuro.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public double Derivative2(
	double y
)

Parameters

y
Type: System..::.Double
Function output value - the value, which was obtained with the help of Function(Double) method.

Return Value

Function derivative, f'(x).

Implements

IActivationFunction..::.Derivative2(Double)

Remarks

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

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

See Also