BCJR implementation

WDM code added (Pol Cont., Opt MUX/DEMUX, Opt Atten, DP_Fiber) -> the codebase is not optimized to always work with dp signals!
This commit is contained in:
Silas Oettinghaus
2025-09-17 13:58:58 +02:00
parent f4a22d23a2
commit 4099f6820f
37 changed files with 3643 additions and 593 deletions

View File

@@ -39,6 +39,5 @@ function [snr_all, snr_per_level] = calc_snr(tx_signal, eq_noise)
% Compute the SNR for these indices
snr_per_level(i) = snr(tx_signal(idx), eq_noise(idx));
histogram(eq_noise(idx));
end
end

View File

@@ -21,8 +21,10 @@ function burst_count = count_error_bursts(err_pos, max_burst_length)
% Check if the burst length exceeds any of the thresholds
for i = 1:max_burst_length
if burst_length > i
if burst_length == i
burst_count(i) = burst_count(i) + 1;
else
end
end
end