version where the signal is flipped and added together

This commit is contained in:
Silas Oettinghaus
2023-07-10 15:08:25 +02:00
parent 93dd63bb18
commit 3c11e4b2e5
10 changed files with 778 additions and 421 deletions

View File

@@ -180,6 +180,18 @@ classdef PAMmapper
end
function [data_out] = decide_pamlevel(obj,data_in)
a = squeeze(repmat(real(data_in.signal),[1 1 length(obj.thresholds)])); %Eingangssignal in 3 spalten
b = squeeze(repmat(reshape(obj.thresholds(:).',[1 1 length(obj.thresholds)]),[1 length(data_in.signal) 1])); %Threshold in 3 Spalten
comp_real = a > b; %check for each symbol/ sampling if it exeeds the obj.thresholdseshold 1, 2 or 3
data_out = sum(comp_real,2);
%data_out = (data_out*2)-3;
%data_out = pam_level_decision .* 1/sqrt(5);
end
end
end