library(TransferEntropy)
x = c(0,1,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0)
y = c(0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,1,0,1,0,0,0,0,0,0,
我有一個變量,其值類似於[23.13,56.1,12.6,1.23,5.56]。我想找到這個變量的熵。我在這裏得到了一個代碼How to compute the shannon entropy and mutual information of N variables,但是對於連續變量,bin大小應該是首選?