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 之間

全站熱搜
創作者介紹
創作者 figer 的頭像
figer

日劇看不完

figer 發表在 痞客邦 留言(1) 人氣()