Accord.Neuro.RectifiedLinearFunction.Function C# (CSharp) Method

Function() public method

Calculates function value.
The method calculates function value at point x.
public Function ( double x ) : double
x double Function input value.
return double
        public double Function(double x)
        {
            if (x > 0)
                return x;
            return 0;
        }