info_dis_change_zerooneseqvalue.m

来自「计算Information Discrepancy中的FDOD函数集」· M 代码 · 共 11 行

M
11
字号
function newZeroOneSeq=info_dis_change_ZeroOneSeqValue(oriZeroOneSeq, Sigma);
% oriZeroOneSeq - cell type
% Sigma - the very symbol collection
% newZeroOneSeq - cell type
oriseq=oriZeroOneSeq;
seqnum=length(oriseq);
for i=1:seqnum
    idx=find(oriseq{i}>Sigma(end));
    oriseq{i}(idx)=Sigma(end); % 将一个bin里有两个及以上的改为1个;
end
newZeroOneSeq=oriseq;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?