New MPI mitigation schemes // Duobinary // Start of FTN schemes
This commit is contained in:
@@ -10,6 +10,8 @@ end
|
||||
options.skip_end = abs(options.skip_end);
|
||||
options.skip_front = abs(options.skip_front);
|
||||
|
||||
assert((options.skip_end+options.skip_front)<length(data_in),"You can not skip more bits than overall length of data! Set skip_front or skip_end to lower value or check data_in");
|
||||
|
||||
bits = 0;
|
||||
errors= 0;
|
||||
ber= 0;
|
||||
@@ -29,7 +31,7 @@ if length(data_ref) == length(data_in)
|
||||
else
|
||||
errorIndice = sum(data_in ~= data_ref,1);
|
||||
errors = sum(errorIndice ,"all" );
|
||||
[~,errorIndice] = find(errorIndice==1);
|
||||
[~,errorIndice] = find(errorIndice~=0);
|
||||
end
|
||||
|
||||
catch
|
||||
|
||||
Reference in New Issue
Block a user