Accord.Neuro.SigmoidFunction.Derivative C# (CSharp) Method

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
        public double Derivative( double x )
        {
            double y = Function( x );

            return ( alpha * y * ( 1 - y ) );
        }