<< wenergy2 discrete_wavelet_analysis wextend >>

swt >> discrete_wavelet_analysis > wentropy

wentropy

Entropy

Calling Sequence

E = wentropy(X,T,P)
E = wentropy(X,T)

Parameters

X :

vector or matrix input

P:

Parameter

T:

Entropy name

T="shannon" :

P is not used

T='log energy':

P is not used

T='threshold':

0<=P, P is the threshold

T='sure':

0<=P, P is the threshold

T='norm':

1<=P, P is the power

Description

performs a entropy calculation of type T for X.

Examples

//Generate random signal.
X = rand(1,200,'norm');

//Compute Shannon entropy
E = wentropy(X,'shannon')

//Compute log energy entropy
E = wentropy(X,'log energy')

//Compute threshold (P=0.2) entropy
E = wentropy(X,'threshold',0.2)

//Compute Sure entropy with a treshold P=3
E = wentropy(X,'sure',3)

//Compute norm entropy  with power = 1.1.
E = wentropy(X,'norm',1.1)

Authors


Report an issue
<< wenergy2 discrete_wavelet_analysis wextend >>