Add PAMmapper bit mapping and Gray penalty visualization

This commit is contained in:
Silas Oettinghaus
2026-03-26 16:04:30 +01:00
parent c135cb76b1
commit 10a205f231
7 changed files with 180 additions and 36 deletions

View File

@@ -0,0 +1,11 @@
function [Gp, details] = Gray_penalty(use_eth_mapping)
%GRAY_PENALTY Average bit errors per nearest-neighbor PAM-6 symbol error.
if nargin < 1
use_eth_mapping = 1;
end
mapper = PAMmapper(6, 0, "eth_style", use_eth_mapping);
mapper.plotBitMapping();
[Gp, details] = mapper.graypenalty();
end