lisa_noise.modelled.compute_covariance

TDI-2 XYZ instrument covariance and its composition into a data model.

Three layers, each a callable model(freq, params) -> (Nf, 3, 3):

build_data_model() nests them; the outermost is what the likelihood calls.

Classes

TDI2NoiseModel

TDI-2 XYZ instrument noise covariance.

Functions

ltts_at_epochs(data, t0[, duration, n_epochs]) → numpy.ndarray

Light travel times (n_epochs, 6) in segwo link order.

tdi_kernels(freq, ltts) → tuple[numpy.ndarray, numpy.ndarray]

The XYZ covariance per unit single-link PSD: K_tma, K_oms (Nf, 3, 3).

build_data_model(freq, ltts, knots[, xp, processing, ...]) → Any

The covariance model of the data: instrument, conditioning, taper.

describe(model) → list[str]

Log lines of the wrappers around a model, outermost last.

Module Contents

lisa_noise.modelled.compute_covariance.ltts_at_epochs(data: dict, t0: float, duration: float | None = None, n_epochs: int = 1) → numpy.ndarray

Light travel times (n_epochs, 6) in segwo link order.

One epoch is t0; more are the midpoints of n_epochs equal slices of [t0, t0 + duration]. data is the output of read_mojito_data.

lisa_noise.modelled.compute_covariance.tdi_kernels(freq: numpy.ndarray, ltts: numpy.ndarray) → tuple[numpy.ndarray, numpy.ndarray]

The XYZ covariance per unit single-link PSD: K_tma, K_oms (Nf, 3, 3).

With M the TDI mixing matrix, C = M Σ M† where the single-link covariance Σ is, in fractional-frequency units,

  • OMS: the identity (independent on the six links);

  • TMA: 2 on the diagonal, and exp(iωL_ji) + exp(−iωL_ij) between opposite links, which share their test masses.

The kernels are averaged over the epochs of ltts (n_epochs, 6): the spectrum of a slowly drifting geometry is the time average.

class lisa_noise.modelled.compute_covariance.TDI2NoiseModel(freq: numpy.ndarray, ltts: numpy.ndarray, knots: lisa_noise.modelled.knots.Knots, xp: Any = np)

TDI-2 XYZ instrument noise covariance.

C(f) = S_tma(f) K_tma(f) + S_oms(f) K_oms(f), with the two single-link PSDs log10 cubic splines. Everything but the PSDs is fixed at construction, so a call is two small matmuls and two broadcasts.

Parameters:
  • freq ((Nf,) array) – Frequencies in Hz, any grid. Beyond the ghost knots the PSDs follow the parametric instrument shape; a DC row (f = 0) is zero.

  • ltts ((6,) or (n_epochs, 6) array) – Light travel times, see ltts_at_epochs().

  • knots (Knots) – Output of build_knots().

  • xp (module, optional) – numpy or jax.numpy.

ltts
lisa_noise.modelled.compute_covariance.build_data_model(freq: numpy.ndarray, ltts: numpy.ndarray, knots: lisa_noise.modelled.knots.Knots, xp: Any = np, *, processing: dict[str, Any] | None = None, taper: dict[str, Any] | None = None, n_samples: int | None = None, delta_t: float | None = None, method: str = 'patches', patch_tol: float = 1e-05, kernel_tol: float = 1e-10) → Any

The covariance model of the data: instrument, conditioning, taper.

The keyword arguments are plain settings, so the same dictionary builds the model for a fit and is stored with the result to rebuild it.

Parameters:
lisa_noise.modelled.compute_covariance.describe(model: Any) → list[str]

Log lines of the wrappers around a model, outermost last.