Entropy
版本 1.0.0.0 (1.6 KB) 作者:
Will Dwinnell
Calculates the sample entropy, in bits, of discrete variables.
Entropy: Returns entropy (in bits) of each column of 'X'
by Will Dwinnell
H = Entropy(X)
H = row vector of calculated entropies (in bits)
X = data to be analyzed
Note 1: Each distinct value in X is considered a unique value.
Note 2: Estimated entropy values are slightly less than true,
due to finite sample size.
Example:
X = ceil(repmat([2 4 8 16],[1e3,1]) .* rand(1e3,4));
Entropy(X)
引用格式
Will Dwinnell (2025). Entropy (https://www.mathworks.com/matlabcentral/fileexchange/28692-entropy), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R12
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB 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.0.0.0 |