This function is used to calculate the mutual information (MI) and maximal information coefficient (MIC) between two variables.
MutualInfo(theta, psi, v1, v2)- vector of probability for each component
- specific probability for each variable in each component
- first variable
- second variable
MI - mutual information between two variables
MIC - maximal information coefficient between two variables