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 之間
寫得這麼好,還是留點文字吧。 要來我家看看喔 http://todd08.pixnet.net/blog