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