DelayKernel

class pmrf.stats.covariance_kernels.DelayKernel(delay: Array | ndarray | bool | number | bool | int | float | complex, *, name: str | None = None, metadata: Any = None)

Bases: AbstractCovarianceKernel

Complex delay kernel.

Concentrates a complex discrepancy around a delay, for use with pmrf.stats.discrepancy_models.ComplexGaussianProcess. The kernel is complex-valued, so it is only a covariance there; multiply it by a real kernel and a float for the variance.

Mathematical Formulation

\[k(x_1, x_2) = e^{-j 2\pi \tau\, \mathbf{1}^\top (x_1 - x_2)}\]

where \(\tau\) is the delay. It is Hermitian and positive semi-definite, of rank one. Multiplied by a real kernel \(\sigma^2 k_r\), the real part of the product, \(\sigma^2 k_r(x_1, x_2) \cos(2\pi\tau(x_1 - x_2))\), is the covariance of each of the real and imaginary parts of the discrepancy, and \(\sigma^2 k_r(x_1, x_2) \sin(2\pi\tau(x_1 - x_2))\) is the covariance of the real part at \(x_1\) with the imaginary part at \(x_2\). At \(\tau = 0\) the two parts are independent.

As for CosineKernel, \(d\)-dimensional differences are summed.

Parameters:

delay (ArrayLike) – The delay, in the reciprocal of the input unit (nanoseconds for inputs in GHz). A delay of shape (D,) gives D batched kernels.

__call__(x1, x2, key=None)

Evaluate the kernel between two points.

Parameters:
  • x1 (jnp.ndarray) – First input point.

  • x2 (jnp.ndarray) – Second input point.

  • key (jax.random.PRNGKey, optional) – Random key for stochastic kernels.

Returns:

Kernel covariance scalar.

Return type:

jnp.ndarray

delay: Array | ndarray | bool | number | bool | int | float | complex

The delay.