version where the signal is flipped and added together
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user