资源简介
用于计算小波及小波包分解时的香农熵,以便确定是否所选择的小波基是否是最优的!
代码片段和文件信息
function H = entropy(objectSetvarargin)
%ENTROPY Compute the Shannon entropy of a set of variables.
% ENTROPY(XP) returns the (joint) entropy for the joint distribution
% corresponding to object matrix X and probability vector P. Each row of
% MxN matrix X is an N-dimensional object and P is a length-M vector
% containing the corresponding probabilities. Thus the probability of
% object X(i:) is P(i).
%
% ENTROPY(X) with no probability vector specified will assume a uniform
% distribution across the objects in X.
%
% If X contains duplicate rows these are assumed to be occurrences of the
% same object and the corresponding probabilities are added. (This is
% actually the only reason that object matrix X is needed -- to detect and
%
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2694 2009-06-19 08:28 entropy.m
----------- --------- ---------- ----- ----
2694 1
- 上一篇:基于VHDL动态扫描数字时钟.docx
- 下一篇:FT232资料与读写代码
评论
共有 条评论