Skip to content

Commit cfdfc4e

Browse files
committed
compare coherent vs NCI of the same N pulses in detection exercise; refresh baselines
1 parent 037b9e9 commit cfdfc4e

3 files changed

Lines changed: 28 additions & 17 deletions

File tree

‎apps/exercises/6_1_detection_theory.py‎

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,19 @@
99
2. ROC curves (Pd vs Pfa) for Swerling 0 at several SNR values.
1010
3. Required SNR vs number of non-coherently integrated pulses,
1111
comparing exact numerical results with Albersheim's approximation.
12-
4. Pd vs SNR comparing coherent single-look with NCI for several N.
12+
4. Pd vs per-pulse SNR comparing coherent integration and non-coherent
13+
integration of the same N pulses.
1314
1415
Key takeaways:
1516
- A non-fluctuating target (Swerling 0) has the steepest Pd-vs-SNR curve.
1617
Fluctuating targets (Swerling I, III) require higher average SNR for the
1718
same Pd because the instantaneous RCS can be much lower than the average.
1819
- Swerling III (4 DOF) performs better than Swerling I (2 DOF) because
1920
its RCS is less likely to fade to zero.
20-
- Non-coherent integration reduces the per-pulse SNR requirement at the
21-
cost of needing multiple independent looks.
21+
- Integrating N pulses either way beats a single pulse, but coherent
22+
integration gains the full factor of N in SNR while NCI gains less
23+
(roughly N^0.7-0.8 here). The NCI loss grows with N: about 1.3 dB at
24+
N=5 and 3 dB at N=20 for Pd = 0.9, Pfa = 1e-6.
2225
- Albersheim's closed-form approximation tracks the exact numerical result
2326
to within a fraction of a dB over most of its stated validity range
2427
(0.1 <= Pd <= 0.9, 1e-7 <= Pfa <= 1e-3, 1 <= N <= 8096), degrading only
@@ -57,15 +60,19 @@
5760
plot_required_snr_vs_n(pd=0.9, pfa=pfa, n_pulses_range=np.arange(1, 65))
5861

5962
# ----------------------------------------------------------------
60-
# Figure 4: Coherent single-look vs NCI
63+
# Figure 4: Coherent integration vs NCI of the same N pulses
6164
# ----------------------------------------------------------------
65+
# Coherent integration of N pulses multiplies the per-pulse SNR by N
66+
# before the single-look detector; NCI sums N square-law outputs.
6267
fig, ax = plt.subplots(figsize=(8, 5))
63-
snr_lin = 10 ** (snr_db / 10)
68+
snr_pp_db = np.arange(-10, 20, 0.2) # per-pulse SNR axis
69+
snr_pp_lin = 10 ** (snr_pp_db / 10)
6470

65-
ax.plot(snr_db, pd_swerling0(snr_lin, pfa), label="Coherent (single look)")
71+
ax.plot(snr_pp_db, pd_swerling0(snr_pp_lin, pfa), "k", label="Single pulse (N=1)")
6672
for n in [5, 10, 20]:
67-
pd_nci = pd_swerling0_nci(snr_lin, pfa, n)
68-
ax.plot(snr_db, pd_nci, "--", label=f"NCI, N={n}")
73+
(line,) = ax.plot(snr_pp_db, pd_swerling0(n * snr_pp_lin, pfa), label=f"Coherent, N={n}")
74+
pd_nci = pd_swerling0_nci(snr_pp_lin, pfa, n)
75+
ax.plot(snr_pp_db, pd_nci, "--", color=line.get_color(), label=f"NCI, N={n}")
6976

7077
ax.set_xlabel("Per-pulse SNR [dB]")
7178
ax.set_ylabel("$P_d$")
@@ -88,9 +95,12 @@
8895
snr = required_snr(0.9, pfa, model)
8996
print(f" {model:12s}: {snr:.2f} dB")
9097

91-
print("\nRequired per-pulse SNR for Pd = 0.9 (Swerling 0, NCI):")
98+
print("\nRequired per-pulse SNR for Pd = 0.9 (Swerling 0):")
99+
print(" NCI coherent NCI loss")
100+
snr_single = required_snr(0.9, pfa)
92101
for n in [1, 5, 10, 20, 50]:
93-
snr = required_snr_nci(0.9, pfa, n)
94-
print(f" N = {n:3d}: {snr:.2f} dB")
102+
snr_nci = required_snr_nci(0.9, pfa, n)
103+
snr_coh = snr_single - 10 * np.log10(n)
104+
print(f" N = {n:3d}: {snr_nci:5.2f} dB {snr_coh:5.2f} dB {snr_nci - snr_coh:.2f} dB")
95105

96106
plt.show()

‎tests/app_baselines/apps_exercises_6_1_detection_theory.py.out‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ Required post-integration SNR for Pd = 0.9:
99
swerling1 : 21.14 dB
1010
swerling3 : 16.99 dB
1111

12-
Required per-pulse SNR for Pd = 0.9 (Swerling 0, NCI):
13-
N = 1: 13.18 dB
14-
N = 5: 7.50 dB
15-
N = 10: 5.27 dB
16-
N = 20: 3.17 dB
17-
N = 50: 0.58 dB
12+
Required per-pulse SNR for Pd = 0.9 (Swerling 0):
13+
NCI coherent NCI loss
14+
N = 1: 13.18 dB 13.18 dB 0.00 dB
15+
N = 5: 7.50 dB 6.19 dB 1.30 dB
16+
N = 10: 5.27 dB 3.18 dB 2.08 dB
17+
N = 20: 3.17 dB 0.17 dB 3.00 dB
18+
N = 50: 0.58 dB -3.81 dB 4.39 dB
18.2 KB
Loading

0 commit comments

Comments
 (0)