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):
TDI2NoiseModel— the instrument covarianceC(f, θ)(this module);ConditionedModel— the filter response and the power aliased by the decimation;WindowedModel— the taper convolution.
build_data_model() nests them; the outermost is what the likelihood calls.
Classes¶
TDI-2 XYZ instrument noise covariance. |
Functions¶
|
Light travel times |
|
The XYZ covariance per unit single-link PSD: |
|
The covariance model of the data: instrument, conditioning, taper. |
|
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 ofn_epochsequal slices of[t0, t0 + duration].datais the output ofread_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
Mthe 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) –
numpyorjax.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:
processing (dict, optional) – Filter and decimation applied to the data (
lisa_noise.io.read.read_processing_kwargs()); adds aConditionedModel.taper (dict, optional) –
windowname andalphaof the taper applied to the data; adds aWindowedModel. Needsn_samplesanddelta_tof the segment.method – Options of the
WindowedModel.patch_tol – Options of the
WindowedModel.kernel_tol – Options of the
WindowedModel.
- lisa_noise.modelled.compute_covariance.describe(model: Any) list[str]¶
Log lines of the wrappers around a model, outermost last.