Accord.Statistics.Kernels.Spherical.Function C# (CSharp) Method

Function() public method

Spherical Kernel Function
public Function ( double z ) : double
z double Distance z in input space.
return double
        public double Function(double z)
        {
            if (z >= sigma)
                return 0;

            double norm = z / sigma;
            return 1.0 - 1.5 * norm + 0.5 * norm * norm * norm;
        }

Same methods

Spherical::Function ( double x, double y ) : double