choclo.point.kernel_nnu

Contents

choclo.point.kernel_nnu#

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

Third derivative of the inverse of the distance along north-north-up.

This is equivalent to the derivatives along north-up-north and up-north-north.

Important

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

Parameters:
easting_p, northing_p, upward_pfloat

Easting, northing and upward coordinates of point \(\mathbf{p}\).

easting_q, northing_q, upward_qfloat

Easting, northing and upward coordinates of point \(\mathbf{q}\).

distancefloat

Euclidean distance between points \(\mathbf{p}\) and \(\mathbf{q}\).

Returns:
kernelfloat

Value of the kernel function.

Notes

Given two points \(\mathbf{p} = (x_p, y_p, z_p)\) and \(\mathbf{q} = (x_q, y_q, z_q)\) defined in a Cartesian coordinate system, compute the following kernel function:

\[ \begin{align}\begin{aligned}k_{yyz}(\mathbf{p}, \mathbf{q}) = k_{yzy} = k_{zyy} = \frac{\partial^3}{\partial y_p^2 \partial x_p} \left( \frac{1}{\lVert \mathbf{p} - \mathbf{q} \rVert_2} \right) = \frac{ 3 (z_p - z_q) }{ \lVert \mathbf{p} - \mathbf{q} \rVert_2^5 } - \frac{ 15 (y_p - y_q)^2 (z_p - z_q)\\}{ \lVert \mathbf{p} - \mathbf{q} \rVert_2^7 }\end{aligned}\end{align} \]

where \(\lVert \cdot \rVert_2\) refer to the \(L_2\) norm (the Euclidean distance between \(\mathbf{p}\) and \(\mathbf{q}\)).