exp

Contents

exp#

luas.kernels.exp(x: Array, y: Array, L: Any) Array[source]#

Exponential kernel function, also known as the Matern 1/2 kernel, used with luas.kernels.evaluate_kernel to build covariance matrices.

\[k(x, y) = \Bigg(\frac{|x - y|}{L}\Bigg)\]
Parameters:
  • x (JAXArray) – Input vector 1

  • y (JAXArray) – Input vector 2

  • L (Scalar) – Length scale

Returns:

Covariance between two input vectors

Return type:

Scalar