pint.utils.plrednoise_from_wavex

pint.utils.plrednoise_from_wavex(model, ignore_fyr=True)[source]

Convert a WaveX representation of red noise to a PLRedNoise representation. This is done by minimizing a likelihood function that acts on the WaveX amplitudes over the powerlaw spectral parameters.

Parameters:
  • model (pint.models.timing_model.TimingModel) – The timing model with a WaveX component.

  • ignore_fyr (bool) – Whether to ignore the frequency bin containinf 1 yr^-1 while fitting for the spectral parameters.

Returns:

The timing model with a converted PLRedNoise component.

Return type:

pint.models.timing_model.TimingModel