mutualinfo(x, y,nBins, ifplot)

版本 1.1 (2.1 KB) 作者: Wei-Rong Chen
This function calculates the mutual information of X and Y
502.0 次下载
更新时间 2015/11/9

查看许可证

% Calculate the mutual information between x and y using the simple histogram method.
% Jeffrey-Perks law is assumed (adding 0.5 to all cells before MI estimation).
% Usage: MI = mutualinfo(x, y,nBins, ifplot)
% 'nBins' : number of bins for each dimension.
% mutual informaiton: I(X;Y) = sum(sum(p(x,y)*log(p(x,y)/p(x)p(y)))
% See "Information Theory" (Shannon, 1948)
% This code is inspired by:
% Iskarous, K., Mooshammer, C., Hoole, P., Recasens,
% D., Shadle, C. H., Saltzman, E., and Whalen, D. H. (2013).
% "The coarticulation/invariance scale: Mutual information
% as a measure of coarticulation resistance, motor synergy,
% and articulatory invariance," J. Acoust. Soc. Am. 134, 1271-1282.
%
% Requirement: "hist3" in Statistics and Machine Learning Toolbox

引用格式

Wei-Rong Chen (2024). mutualinfo(x, y,nBins, ifplot) (https://www.mathworks.com/matlabcentral/fileexchange/50320-mutualinfo-x-y-nbins-ifplot), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2015a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
社区

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1

.
.

1.0.0.0