[4f740a]: / Supporting Functions / Tsallis_entro.m

Download this file

12 lines (9 with data), 162 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
function y=Tsallis_entro(x,q)
[M,N]=size(x);
y=zeros(1,N);
for l=1:N
sum1=sum(x(:,l)-(x(:,l)).^q);
sum2=sum1/(q-1);
y(1,l)=sum2;
end
end