lisa_noise.modelled.response ============================ .. py:module:: lisa_noise.modelled.response .. autoapi-nested-parse:: Effect of the data conditioning (filter and decimation) on the covariance. MojitoProcessor filters the Level-1 streams (zero-phase Butterworth) and optionally decimates them (``scipy.signal.resample_poly``) before they are cut into segments. On a stationary process this multiplies the covariance by a real factor, the same for every channel:: R(f) = |H_filter(f)|⁴ · |H_decimation(f)|² and the decimation to ``fs_out`` folds the power above ``fs_out / 2`` back into the band:: C_data(f) = Σ_k R(|f + k fs_out|) · C(|f + k fs_out|) with ``C(−f) = conj C(f)``. The filters are rebuilt with scipy from the settings recorded in the processed file (:func:`lisa_noise.io.read.read_processing_kwargs`). Attributes ---------- .. autoapisummary:: lisa_noise.modelled.response.ALIAS_TOL lisa_noise.modelled.response.FILTER_DESIGNS Classes ------- .. autoapisummary:: lisa_noise.modelled.response.ConditionedModel Functions --------- .. autoapisummary:: lisa_noise.modelled.response.filter_sos lisa_noise.modelled.response.decimation_taps lisa_noise.modelled.response.conditioning_response lisa_noise.modelled.response.alias_offsets Module Contents --------------- .. py:data:: ALIAS_TOL :value: 1e-08 .. py:data:: FILTER_DESIGNS .. py:function:: filter_sos(fs_in: float, highpass_cutoff: float | None = None, lowpass_cutoff: float | None = None, order: int = 2, filter_type: str = 'butterworth') -> numpy.ndarray Second-order sections of the high-pass, low-pass or band-pass filter. .. py:function:: decimation_taps(fs_in: float, target_fs: float, kaiser_window: float, numtaps: int | None = None) -> tuple[numpy.ndarray, int, int] Anti-alias FIR taps and ``(up, down)``, as ``resample_poly`` designs them. .. py:function:: conditioning_response(freq: numpy.ndarray, processing: dict[str, Any]) -> numpy.ndarray ``R(f)`` at the Level-1 rate; zero above the Level-1 Nyquist frequency. .. py:function:: alias_offsets(processing: dict[str, Any]) -> list[int] Nonzero ``k`` for which ``|f + k fs_out|`` can lie below ``fs_in / 2``. Empty without a decimation. .. py:class:: ConditionedModel(make_model: Any, freq: numpy.ndarray, processing: dict[str, Any], xp: Any = np, seeds: Any = ()) A covariance model seen through the conditioning. :param make_model: ``make_model(freq)`` returns a ``model(freq, params) -> (Nf, 3, 3)`` bound to ``freq``; called for ``freq`` and once per alias order. :type make_model: callable :param freq: Frequencies in Hz, within ``[0, fs_out / 2]``. A DC row stays zero. :type freq: (Nf,) array :param processing: Conditioning record, see :func:`lisa_noise.io.read.read_processing_kwargs`. :type processing: dict :param xp: ``numpy`` or ``jax.numpy``. :type xp: module, optional :param seeds: Parameter vectors at which negligible alias orders are found and dropped (see ``ALIAS_TOL``). Without them every order is kept. :type seeds: sequence of arrays, optional .. py:attribute:: name :value: 'response' .. py:attribute:: inner .. py:attribute:: info .. py:method:: describe() -> str One-line summary for the log.