AForge.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 ) );
        }

Usage Example

        public static void Test()
        {
            FractionalSigmoidFunction frac = new FractionalSigmoidFunction();
            SigmoidFunction norm = new SigmoidFunction();

            double left = frac.Derivative(0.5, 1);
            double right = norm.Derivative(0.5);

            Debugger.Break();
        }
All Usage Examples Of AForge.Neuro.SigmoidFunction::Derivative