Computes the mutual information I(X; Y) using either a binning-based histogram estimator or a k-nearest-neighbor (KSG) estimator.
Usage
mi(x, y, method = c("binning", "knn"), bins = 10, k = 3, ...)Arguments
- x
Numeric vector (first variable).
- y
Numeric vector (second variable).
- method
Estimation method:
"binning"(default) or"knn".- bins
Number of bins per dimension for the binning method (default 10).
- k
Number of nearest neighbors for the kNN method (default 3).
- ...
Additional arguments (currently unused).
