more and more
This commit is contained in:
@@ -7,19 +7,19 @@ fp = QueryFilter();
|
||||
% fp.where('Runs', 'run_id','EQUALS', 987);
|
||||
M = 4;
|
||||
fp.where('Runs', 'pam_level','EQUALS', M);
|
||||
fp.where('Runs', 'symbolrate','EQUALS', 112e9);
|
||||
% fp.where('Runs', 'symbolrate','NOT_EQUAL', 112e9);
|
||||
fp.where('Runs', 'fiber_length','EQUALS', 0);
|
||||
fp.where('Runs', 'is_mpi','EQUALS', 1);
|
||||
fp.where('Runs', 'interference_path_length','EQUALS', 1000);
|
||||
% fp.where('Runs', 'loop_id','GREATER_THAN', 11);
|
||||
fp.where('Runs', 'sir','EQUALS',20);
|
||||
|
||||
fp.where('Runs', 'sir','LESS_EQUAL',20);
|
||||
% fp.where('Runs','run_id','GREATER_EQUAL',3153);
|
||||
|
||||
[dataTable,sql_query] = db.queryDB(fp, db.getTableFieldNames('Runs'));
|
||||
|
||||
[~, uniqueIdx] = unique(dataTable.run_id); % Get unique run_id indices
|
||||
|
||||
dataTable.SIR = -7 - round(dataTable.power_mpi_interference);
|
||||
% dataTable.SIR = -7 - round(dataTable.power_mpi_interference);
|
||||
|
||||
%%
|
||||
for i = 1:size(dataTable,1)
|
||||
@@ -41,16 +41,29 @@ for i = 1:size(dataTable,1)
|
||||
Symbols = Symbols.Symbols;
|
||||
|
||||
Scpe_sig_raw = load([savePath, char(dataTable_.rx_raw_path(1))]);
|
||||
Scpe_sig_raw = Scpe_sig_raw.Scpe_sig_raw.normalize("mode","rms");
|
||||
Scpe_sig_raw = Scpe_sig_raw.Scpe_sig_raw;
|
||||
% Scpe_sig_raw = Scpe_sig_raw.normalize("mode","rms");
|
||||
Scpe_sig_raw.plot("displayname",['Scope Signal (Run ID: ',num2str(dataTable_.run_id)],"fignum",dataTable_.run_id,"clear",0);
|
||||
|
||||
Scpe_sig_raw.spectrum("normalizeTo0dB",1);
|
||||
|
||||
|
||||
disp(num2str(dataTable_.interference_path_length));
|
||||
[sep_sig, avg_sig] = showLevelScatter(Scpe_sig_raw, Symbols, ...
|
||||
[separated_levels_sig, avg_sig] = showLevelScatter(Scpe_sig_raw, Symbols, ...
|
||||
"fsym", fsym, ...
|
||||
"syncFs", 2*fsym, ...
|
||||
"fignum", 400, ...
|
||||
"normalize", true, ...
|
||||
"debug_plots", false);
|
||||
var(sep_sig,0,2,'omitnan')
|
||||
"debug_plots", false,"showPlot",true,"showStdAnnotations",false,"yLimits",[-3 3]);
|
||||
|
||||
std_levels = std(separated_levels_sig,0,2,'omitnan');
|
||||
mean_levels = mean(separated_levels_sig,2,'omitnan');
|
||||
std_tot = std(Scpe_sig_raw.signal,0,1,'omitnan');
|
||||
|
||||
var_levels = std_levels.^2;
|
||||
p = polyfit(mean_levels, var_levels, 1);
|
||||
|
||||
var_slope = p(1);
|
||||
var_offset = p(2);c
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user