Constructs a DenseInfoTheory object for nBin bins. The values taken by each observation must then be on the interval [0, nBin).
H(X | Y)
I(X; Y | Z)
Computes the entropy of a set of observations. Note that, for this function, the joint() function can be used to compute joint entropies as long as each individual range contains only integers on [0, nBin).
I(x; y)
Calculates the P-value for I(X; Y) assuming x and y both have supports of [0, nBin). The P-value is calculated using a Chi-Square approximation. It is asymptotically correct, but is approximate for finite sample size.
Much faster implementations of information theory functions for the special but common case where all observations are integers on the range [0, nBin). This is the case, for example, when the observations have been previously binned using, for example, dstats.base.frqBin().
Note that, due to the optimizations used, joint() cannot be used with the member functions of this struct, except entropy().
For those looking for hard numbers, this seems to be on the order of 10x faster than the generic implementations according to my quick and dirty benchmarks.