gpLib.MaxDistanceKernel

class gpLib.MaxDistanceKernel(c: float, **kwargs)

Max-distance kernel on a bounded domain

\[k(\mathbf x,\mathbf y) \;=\; c - \bigl\|\mathbf x-\mathbf y\bigr\|_{A}, \qquad \|\mathbf v\|_{A} := \sqrt{\mathbf v^{\top}A\mathbf v},\]

with fixed diameter \(c\) and anisotropy matrix

\[\begin{split}A=\begin{pmatrix}1 & -\gamma\\ -\gamma & 1\end{pmatrix}, \; 0\le\gamma<1.\end{split}\]
Parameters:

c – Upper bound of the metric (must dominate all pairwise distances).

Variables:

gamma (float) – Off-diagonal coupling (set to 0.5 in code).