gw.noise.synthetic.asd_parameterization.fit_spectral
gw.noise.synthetic.asd_parameterization.fit_spectral(
frequencies,
psd,
broadband_noise,
num_spectral_segments,
sigma,
delta_f,
)Fit Lorentzians to the spectral features of a PSD.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| frequencies | array_like | Frequency grid. | required |
| psd | array_like | PSD to be parameterized. | required |
| broadband_noise | array_like | Broadband noise of the PSD. | required |
| num_spectral_segments | int | Number of spectral segments. | required |
| sigma | float | Standard deviation of the Gaussian noise used for the spline fit. | required |
| delta_f | float | Truncation parameter for Lorentzians. Set to None if non-positive value is passed. | required |