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)