Click or drag to resize
Accord.NET (logo)

RectifiedLinearFunctionDerivative2 Method

Calculates function derivative.

Namespace:  Accord.Neuro
Assembly:  Accord.Neuro (in Accord.Neuro.dll) Version: 3.8.0
Syntax
public double Derivative2(
	double y
)
Request Example View Source

Parameters

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

Return Value

Type: Double
Function derivative, f'(x).

Implements

IActivationFunctionDerivative2(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 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