Last commit after 400G Lab Measurement
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
classdef EQ
|
||||
classdef EQ %< handle
|
||||
%EQ Summary of this class goes here
|
||||
% Detailed explanation goes here
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user