9 lines
125 B
Mathematica
9 lines
125 B
Mathematica
|
|
function f = ventropy(x)
|
||
|
|
|
||
|
|
f = [];
|
||
|
|
d = size(x);
|
||
|
|
x = x(:);
|
||
|
|
for i = 1:length(x)
|
||
|
|
f = [f;entropy(x(i))];
|
||
|
|
end
|
||
|
|
f = reshape(f,d);
|