choclo.point.kernel_pot

Contents

choclo.point.kernel_pot#

choclo.point.kernel_pot(easting_p, northing_p, upward_p, easting_q, northing_q, upward_q, distance)[source]#

The inverse of the distance between the two points

Important

The coordinates of the two points must be in Cartesian coordinates and have the same units.

Parameters:
  • easting_p (float) – Easting coordinate of point p.

  • northing_p (float) – Northing coordinate of point p.

  • upward_p (float) – Upward coordinate of point p.

  • easting_q (float) – Easting coordinate of point q.

  • northing_q (float) – Northing coordinate of point q.

  • upward_q (float) – Upward coordinate of point q.

  • distance (float) – Euclidean distance between points p and q.

Returns:

kernel (float) – Value of the kernel function.

Notes

Given two points p=(xp,yp,zp) and q=(xq,yq,zq) defined in a Cartesian coordinate system, compute the following kernel function:

kV(p,q)=1pq2

where 2 refer to the L2 norm (the Euclidean distance between p and q).