bilby.gw.utils.optimal_snr_squared

bilby.gw.utils.optimal_snr_squared(signal, power_spectral_density, duration)[source]

Compute the square of the optimal matched filter SNR for the provided signal.

Parameters:
signal: array_like

Array containing the signal

power_spectral_density: array_like
duration: float

Time duration of the signal

Returns:
float: The matched filter signal to noise ratio squared