|
Algorithm A1 Estimation of 1D entropy |
-
1:
functionH1D(, N, )
-
2:
if
then
-
3:
▹ Spacing method
-
4:
round()
-
5:
,
-
6:
-
7:
else ▹ Uniform bins in
-
8:
-
9:
-
10:
▹ Histogram with bins
-
11:
Histogram (,)
-
12:
▹ Normalize
-
13:
▹ where
-
14:
end if
-
15:
return
H
-
16:
end function
|