entrupd
Entropy update (wavelet packet)
Description
entrupd is a one- and two-dimensional wavelet packet
utility.
Examples
Load a signal. Save the current extension mode, then set the mode to zero padding.
load noisdopp x = noisdopp; origMode = dwtmode("status","nodisp"); dwtmode("zpd","nodisp")
Use the wpdec function to decompose the signal x at level 2 with the Haar wavelet using Shannon entropy.
t = wpdec(x,2,"haar","shannon");
Read the entropy from all nodes.
nodes = allnodes(t);
ent = read(t,"ent",nodes);
ent'ans = 1×7
104 ×
-5.8615 -6.8204 -0.0350 -7.7901 -0.0497 -0.0205 -0.0138
Update the nodes entropy to "threshold".
t = entrupd(t,"threshold",0.5); nent = read(t,"ent"); nent'
ans = 1×7
937 488 320 241 175 170 163
Restore the extension mode to the original setting.
dwtmode(origMode,"nodisp")Input Arguments
Tree, specified as a dtree, ntree, or
wptree object.
Entropy function, specified as one of the following:
Entropy Function
( | Threshold Parameter
( | Comments |
|---|---|---|
"shannon" |
| |
"log energy" |
| |
"threshold" | 0 ≤
|
|
"sure" | 0 ≤
|
|
"norm" | 1 ≤
|
|
"user" | String |
|
| "FunName" | No constraints on par | FunName is any string other than the previous entropy functions listed. FunName
contains the file name of your own entropy function,
with |
ent and the threshold parameter
par together define the entropy criterion. For more
information, see wpdec.
Note
The "user" option is historical and kept for
compatibility, but it is obsoleted by the last option described in the
table above. The FunName option does the same as the
"user" option and in addition gives the
possibility to pass a parameter to your own entropy function.
Threshold parameter, specified by a real number or a string.
par and the entropy function
ent together define the entropy criterion.
Version History
Introduced before R2006a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)