Last commit after 400G Lab Measurement

This commit is contained in:
Silas Labor Zizou
2024-11-04 08:57:53 +01:00
parent cf4e0f2b12
commit 492f889dce
9 changed files with 669 additions and 266 deletions

View File

@@ -125,6 +125,13 @@ classdef Duobinary
%make bipolar
data = (data-round(mean(data),1));
[unique_points, ~, idx] = unique(data);
counts = accumarray(idx, 1);
total_samples = numel(data);
probabilities = counts / total_samples;
mean_power = sum((unique_points .^ 2) .* probabilities);
scaling_factor = sqrt(mean_power);
if M == 4
data = data ./ sqrt(2.5); % 7-level constellation weighted with probability after DB code i.e. mean([-3 3 -2 -2 2 2 -1 -1 -1 1 1 1 0 0 0 0].^2) = 2.5 --> sqrt(2.5) == rms(constellation)
elseif M == 6

View File

@@ -1,4 +1,4 @@
classdef EQ
classdef EQ %< handle
%EQ Summary of this class goes here
% Detailed explanation goes here

View File

@@ -129,7 +129,7 @@ classdef DataStorage < handle
tmp = obj.sto.(storageVarName){lin_idx(i)};
if ~isempty(tmp)
if isa(tmp,'Signal') || isa(tmp,'struct') || isa(tmp,'Exfo_laser')
if isa(tmp,'Signal') || isa(tmp,'struct') || isa(tmp,'Exfo_laser') || isa(tmp,'DC_supply')
if i == 1
value = {};
end