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.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.
Amerika
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- 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)