lisa_noise.modelled.knots ========================= .. py:module:: lisa_noise.modelled.knots .. autoapi-nested-parse:: Knot placement and starting values for the TMA and OMS noise splines. Classes ------- .. autoapisummary:: lisa_noise.modelled.knots.SplineKnots lisa_noise.modelled.knots.Knots Functions --------- .. autoapisummary:: lisa_noise.modelled.knots.psds_from_cfg lisa_noise.modelled.knots.build_knots Module Contents --------------- .. py:function:: psds_from_cfg(freq, instrument: dict) Parametric TMA (m²/s⁴/Hz) and OMS (m²/Hz) PSDs at ``freq``. ``instrument`` is the ``modelled.instrument`` section of a loaded config. .. py:class:: SplineKnots The knots of one log10 PSD spline, all ``(n_knots,)`` arrays. ``ghost_mask`` is True for the knots held fixed (those outside the band). .. py:attribute:: freq :type: numpy.ndarray .. py:attribute:: log10_value :type: numpy.ndarray .. py:attribute:: ghost_mask :type: numpy.ndarray .. py:property:: free_values :type: numpy.ndarray Starting log10 PSDs at the free knots. .. py:class:: Knots The TMA and OMS splines of the modelled noise. The parameter vector of the model is the free TMA values followed by the free OMS values; this class is the one place that order is defined. ``instrument`` holds the settings of the parametric PSDs the knots were started from, which the model follows beyond the ghost knots. .. py:attribute:: tma :type: SplineKnots .. py:attribute:: oms :type: SplineKnots .. py:attribute:: instrument :type: dict .. py:property:: n_tma :type: int where the parameter vector splits. :type: Number of free TMA knots .. py:property:: free_values :type: numpy.ndarray Starting parameter vector. .. py:property:: param_names :type: list[str] ``tma_0, …, oms_0, …``. :type: Name of each parameter .. py:method:: to_dict() -> dict Plain nested dictionary, for the result file. .. py:method:: from_dict(record: dict) -> Knots :classmethod: Inverse of :meth:`to_dict`. .. py:function:: build_knots(freq, instrument: dict, science_band=(0.0001, 0.1), n_oms_knots: int = 8) -> Knots Knot frequencies and starting log10 PSDs for the two splines. TMA knots are concentrated around the turning point of its PSD (~8 mHz); OMS knots are evenly spaced in log frequency. Each spline also has a ghost knot either side of the band, held at the parametric PSD to anchor it. :param freq: Frequencies in Hz (only used to locate the TMA turning point). :type freq: (Nf,) array :param instrument: The ``modelled.instrument`` section of a loaded config. :type instrument: dict :param science_band: Band in Hz the free knots span. :type science_band: (f_min, f_max) :param n_oms_knots: Number of OMS knots in the band. :type n_oms_knots: int