public static Distance ( this kernel, double x, double y ) : double | ||
kernel | this | The kernel function whose distance needs to be evaluated. |
x | double | An input point |
y | double | An input point |
Результат | double |
public static double Distance(this IKernel kernel, double[] x, double[] y)
{
return kernel.Function(x, x) + kernel.Function(y, y) - 2 * kernel.Function(x, y);
}