dipkernel#

torchspin.dipkernel(t, r, g=None)[source]#

Compute the DEER dipolar kernel matrix.

Parameters:
  • t (ndarray) – Time values in microseconds.

  • r (ndarray) – Distance values in nanometers. Must be equally spaced.

  • g (tuple[float, float] | None) – g-factors of the two spins [gA, gB]. Default: [gfree, gfree].

Returns:

K – Kernel matrix, shape (len(t), len(r)). K[i, j] is the dipolar signal at time t[i] for distance r[j].

Return type:

ndarray