Accord.Statistics.Distributions.DensityKernels.GaussianKernel.Derivative C# (CSharp) Method

Derivative() public method

Computes the derivative of the kernel profile function.
public Derivative ( double x ) : double
x double The point estimate x.
return double
        public double Derivative(double x)
        {
#if DEBUG
            if (x < 0)
                throw new Exception();
#endif

            return -0.5 * Math.Exp(-0.5 * x);
        }
    }