資源簡介
用于計算小波及小波包分解時的香農熵,以便確定是否所選擇的小波基是否是最優的!
代碼片段和文件信息
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資料與讀寫代碼
評論
共有 條評論