Calculate MeDiA_K Distance
functions to calculate pvalue
Set of functions in example RcppEigen package
Calculates MeDiA_K (means Mean Distance Association by K-nearest neighbor) in order to detect nonlinear associations.