start with 400G analysis work
This commit is contained in:
@@ -29,8 +29,18 @@ end
|
||||
% CALC AIR
|
||||
%%% new implementation of AIR
|
||||
constellation = unique(reference_signal);
|
||||
% map reference symbols to constellation indices
|
||||
reference_idx = arrayfun(@(x) find(constellation == x, 1), reference_signal);
|
||||
ach_inf_rate = air_garcia_implementation(constellation',test_signal',reference_idx');
|
||||
|
||||
% compute probability mass function of symbol indices
|
||||
[unique_idx,~,ic] = unique(reference_idx);
|
||||
counts = accumarray(ic,1);
|
||||
pmf = zeros(size(constellation));
|
||||
pmf(unique_idx) = counts / sum(counts);
|
||||
|
||||
% ensure pmf corresponds to full set of constellation indices 1:N
|
||||
% (pmf already aligned because unique_idx are indices into constellation)
|
||||
ach_inf_rate = air_garcia_implementation(constellation',test_signal',reference_idx',pmf);
|
||||
|
||||
|
||||
function [data_,reference_]=trimseq(data,reference,skipstart,skip_end)
|
||||
|
||||
Reference in New Issue
Block a user