bilby.gw.utils.psd_from_freq_series

bilby.gw.utils.psd_from_freq_series(freq_data, df)[source]

Calculate the PSD from the frequency domain output of gaussian_noise() Calls asd_from_freq_series() and squares the output

Parameters:
freq_data: array_like

Array of complex frequency domain data

df: float

Spacing of freq_data, 1/(segment length) used to generate the gaussian noise

Returns:
array_like: Real-valued normalized frequency domain PSD data