Skip to content

Feature: Use Alpha-SNR Instead of SNR (dB) #5

Description

@orabe

Currently, the data simulation framework uses SNR in decibels (SNR_dB) to control the level of the generated noise in sensor-space signals.

Proposed Change
Switch from using SNR_dB to alpha_SNR as the main control parameter for noise level in DataSimulator class

Rationale

  • alpha_SNR is unitless and easily tunable: $\alpha \in (0, 1)$
  • Directly controls the signal-to-noise contribution
  • $\alpha \rightarrow 1$: strong signal, low noise
  • $\alpha \rightarrow 0$: weak signal, high noise
  • Normalize random Gaussian noise to unit Frobenius norm
  • Scale the noise:
    $\epsilon_{\text{scaled}} = \left( \frac{1 - \alpha}{\alpha} \cdot \frac{|y|}{|\epsilon|} \right) \cdot \epsilon$

For backward compatibility, we can offer mapping between SNR_dB and alpha_SNR:

$\alpha = \frac{1}{1 + 10^{- \text{SNR}_{\text{dB}} / 20}}$

or

$\text{SNR}{\text{dB}} = 20 \cdot \log{10} \left( \frac{\alpha}{1 - \alpha} \right)$

Affected Files
• calibrain/data_simulation.py
• calibrain/benchmark.py
• examples/run_experiments.py

Activity

  1. self-assigned this
    on May 23, 2025
  2. added
    enhancement
    on May 23, 2025
  3. added theissue type on May 23, 2025
  4. reopened this on May 23, 2025
  5. reopened this on May 23, 2025
  6. reopened this on May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementsimulation

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions