lnn_mi {rmi} | R Documentation |
Local Nearest Neighbor (LNN) MI Estimator
Description
Local Nearest Neighbor (LNN) mutual information estimator by Gao et al. 2017. This estimator uses the LNN entropy (lnn_entropy
) estimator into the mutual information identity.
Usage
lnn_mi(data, splits, k = 5, tr = 30)
Arguments
data |
Matrix of sample observations, each row is an observation. |
splits |
A vector that describes which sets of columns in |
k |
Order of the local kNN bandwidth selection. |
tr |
Order of truncation (number of neighbors to include in the local density estimation). |
References
Gao, W., Oh, S., & Viswanath, P. (2017). Density functional estimators with k-nearest neighbor bandwidths. IEEE International Symposium on Information Theory - Proceedings, 1, 1351–1355.
Examples
set.seed(123)
x <- rnorm(1000)
y <- x + rnorm(1000)
lnn_mi(cbind(x,y),c(1,1))