close
testA = [1 1 1 1];
testB = [1 2 3 4];
testC = [1 1 2 3];
result = [entropy(0.1*testA') entropy(0.1*testB') entropy(0.1*testC')];
disp( result );
因為 Entropy 的公式
是有用到 機率 所以必須把值壓在0-1 之間
全站熱搜
testA = [1 1 1 1];
testB = [1 2 3 4];
testC = [1 1 2 3];
result = [entropy(0.1*testA') entropy(0.1*testB') entropy(0.1*testC')];
disp( result );
因為 Entropy 的公式
是有用到 機率 所以必須把值壓在0-1 之間