getEntropy(x,Bins)

Compute entropy of vector 'x'
65.0 次下载
更新时间 2017/5/16

查看许可证

call:

H = getEntropy(x,Bins)


Computes the entropy of the vector 'x'. Entropy is computed after
having computed the histogram of the vector, using the binning
defined by 'Bins'.
if Bins is not specified, the function use the default binning as:
Bins = linspace(min(x),max(x),sqrt(numel(x))).

INPUT

x : original vector (NOT a distribution !!!)
Bins : Binning to use to compute the histogram (optional)


OUTPUT

H : Entropy of x (a scalar)

引用格式

Ruggero G. Bettinardi (2024). getEntropy(x,Bins) (https://www.mathworks.com/matlabcentral/fileexchange/62979-getentropy-x-bins), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Histograms 的更多信息
标签 添加标签

Community Treasure Hunt

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

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