Source: https://nemenmanlab.org/~ilya/images/3/35/Theunissen-miller-95.pdf