Entropy
E = wentropy(X,T,P) E = wentropy(X,T)
vector or matrix input
Parameter
Entropy name
P is not used
P is not used
0<=P, P is the threshold
0<=P, P is the threshold
1<=P, P is the power
performs a entropy calculation of type T for X.
//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) | ![]() | ![]() |