View full-text article in PMC Entropy (Basel). 2020 Feb 19;22(2):236. doi: 10.3390/e22020236 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm A3 Estimation of 2D entropy 1:functionH2D(X,Y,N) 2: ▹ calc 2D histogram using uniform bins 3: Nbins←min{max#bins,N0.2,N/10} 4: edges←[0,1/Nbins,2/Nbins,⋯,1] 5: ▹ Histogram with bins edges per dim 6: counts← 2D Histogram(X,Y,edges) 7: p←counts·Nbins2/(∑counts) ▹ Normalize 8: H←−∑pln(p)/Nbins2 9: end function