redundancy.m~

来自「信息论的工具箱,比较稀有,希望对大家有用!」· M~ 代码 · 共 30 行

M~
30
字号
%REDUNDANCY redundancy measure for categorical-discrete data%   R = REDUNDANCY(X,Y) returns the redundancy between the two column%   vectors X and Y containing categorical measures.%%   REDUNDANCY [1] computes a symmetric scaled information measure based on%   mutual information [2,3] normalized to entropies of each variable X and%   Y%%   Joaquin Goñi <jgoni@unav.es> & %   Iñigo Martincorena <imartincore@alumni.unav.es>%   University of Navarra - Dpt. of Physics and Applied Mathematics &%   Centre for Applied Medical Research. Pamplona (Spain).%%   Example:%   %       x = [1;2;2;2;0;0;1;0;1;2];%       y = [1;2;2;2;2;1;0;2;1;0];%       r = redundancy(x,y);%%   References%   [1] Witten, Ian H. & Frank, Eibe (2005), Data Mining: Practical Machine %   Learning Tools and Techniques, Morgan Kaufmann, Amsterdam.%   [2] C. E. Shannon, A mathematical theory of communication, Bell System %   Technical Journal, vol. 27, pp. 379-423 and 623-656, July and October, %   1948.%   [3] http://en.wikipedia.org/wiki/Mutual_informationfunction r = redundancy(x,y) r = mutualinformation(x,y) / (entropy(x) + entropy(y));

⌨️ 快捷键说明

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