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

Function() public method

Multiquadric Kernel function.
public Function ( double x, double y ) : double
x double Vector x in input space.
y double Vector y in input space.
return double
        public override double Function(double[] x, double[] y)
        {
            double norm = 0.0;
            for (int i = 0; i < x.Length; i++)
            {
                double d = x[i] - y[i];
                norm += d * d;
            }

            return -(norm + constant * constant);
        }

Same methods

Multiquadric::Function ( double z ) : double