|
libSDRForge
|
Reproducible end-to-end NOAA SAME audio impairment benchmark. More...
Classes | |
| class | BenchmarkResult |
| Provide BenchmarkResult behavior. More... | |
Functions | |
| np.ndarray | add_awgn (np.ndarray audio, float snr_db, np.random.Generator rng) |
| Add reproducible white Gaussian noise at signal-power SNR in dB. | |
| tuple[int, int] | _byte_errors (bytes expected, bytes decoded) |
| list[BenchmarkResult] | benchmark (*, tuple[float,...] snrs=DEFAULT_SNR_DB, tuple[float,...] baud_errors=(0.0, 1.0), int trials=3, int seed=2026, bool known_clock=True) |
| Measure exact-byte header recovery, including clock-search failures. | |
| int | main (list[str]|None argv=None) |
| Provide main behavior. | |
Variables | |
| str | HEADER = b"ZCZC-WXR-RWT-026099+0030-3211200-KDTX/NWS-" |
| tuple | DEFAULT_SNR_DB = (30.0, 20.0, 10.0, 5.0, 0.0) |
Reproducible end-to-end NOAA SAME audio impairment benchmark.
|
protected |
Best contiguous alignment and longest correct prefix for diagnostics. A deletion/insertion may inflate the mismatch count. This is a diagnostic approximation, not an edit-distance metric or SAME error correction.
| np.ndarray sdrforge.weather.same_benchmark.add_awgn | ( | np.ndarray | audio, |
| float | snr_db, | ||
| np.random.Generator | rng ) |
Add reproducible white Gaussian noise at signal-power SNR in dB.
| audio | The audio value. |
| snr_db | The snr db value. |
| rng | The rng value. |
| list[BenchmarkResult] sdrforge.weather.same_benchmark.benchmark | ( | * | , |
| tuple[float, ...] | snrs = DEFAULT_SNR_DB, | ||
| tuple[float, ...] | baud_errors = (0.0, 1.0), | ||
| int | trials = 3, | ||
| int | seed = 2026, | ||
| bool | known_clock = True ) |
Measure exact-byte header recovery, including clock-search failures.
| snrs | The snrs value. |
| baud_errors | The baud errors value. |
| trials | The trials value. |
| seed | The seed value. |
| known_clock | The known clock value. |
| int sdrforge.weather.same_benchmark.main | ( | list[str] | None | argv = None | ) |
Provide main behavior.
| argv | The argv value. |
| tuple sdrforge.weather.same_benchmark.DEFAULT_SNR_DB = (30.0, 20.0, 10.0, 5.0, 0.0) |
| str sdrforge.weather.same_benchmark.HEADER = b"ZCZC-WXR-RWT-026099+0030-3211200-KDTX/NWS-" |