Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNR calculation + tests #19

Open
1 of 4 tasks
alecgunny opened this issue Nov 1, 2022 · 2 comments
Open
1 of 4 tasks

SNR calculation + tests #19

alecgunny opened this issue Nov 1, 2022 · 2 comments

Comments

@alecgunny
Copy link
Contributor

alecgunny commented Nov 1, 2022

There's a couple things I think that are worth looking at in our SNR calculation

  • Would it be more clear/consistent to refer to it as the "optimal ifo SNR", to avoid confusion with the SNR of a template waveform and a given signal (which would be normalized by this SNR)?
  • Should we do some windowing before the FFT to get better behaved results? Should this window be an optional argument to the function?
  • What is the appropriate normalization to do? I believe we want the FFT to have units of strain / Hz to make the SNR unitless, but is just dividing by the sample rate (as we do) correct? Do we adopt the scaling factor of sqrt(2 / N) used by the welch transform for the ASD? It's not clear to me why that has the correct units.
  • What's the appropriate library to use as our gold standard for testing? Right now I can't really think of any tests a priori that don't just reimplement the logic of the function itself. Solved by fix SNR calculation in compute_snr_ifo, add test against lalsimulation #21
@EthanMarx
Copy link
Collaborator

I came across some lalsimulation utilities that perform SNR calculations in both frequency and time domain.

@alecgunny
Copy link
Contributor Author

It actually looks like @deepchatterjeeligo already implemented those utilities in the tests. I'll edit the original message to be a checklist and cross that off, because the other questions are maybe still worth addressing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants