class MutualInfo2 |
Class for evaluating mutual information between two random variables
Random variables are discretized dividing their range values in bins.
![]() | MutualInfo2 (unsigned num_data, unsigned num_bins, float** thedata, float min_v = MIN_VALUE, float max_v = MAX_VALUE) Constructor. |
![]() | MutualInfo2 (unsigned num_data, unsigned num_bins, char* f, unsigned first, unsigned second, float min_v = MIN_VALUE, float max_v = MAX_VALUE) Constructor. |
![]() | ~MutualInfo2 () Destroyer |
![]() | printdata (void) printdata to stdout |
![]() | Read_min () return minimum value of random variable |
![]() | Read_max () return maximum value of random variable |
![]() | Print_min () print on stdout minimum value of random variable |
![]() | Print_max () print on stdout maximum value of random variable |
![]() | Calc_p (void) It calculates the frequency of the single random variables. |
![]() | Calc_Pjoint (void) It calculates the joint frequency of the random variables. |
![]() | Print_p (void) print the matrix p |
![]() | Print_Pjoint (void) print the matrix Pjoint |
![]() | Calc_Entropy (void) It calculates the entropy of the random variables. |
![]() | Read_Entropy (void) Returns the entropy array of the random variables |
![]() | Print_Entropy (void) Print to stdout the entropy of the random variables |
![]() | Calc_JointEntropy (void) It calculates the joint entropy of the random variables. |
![]() | Read_JointEntropy (void) Returns the joint entropy of the random variables |
![]() | Print_JointEntropy (void) Print to stdout the joint entropy of the random variables |
![]() | Calc_Minfo (void) It calculates the mutual information of the random variables. |
![]() | Read_Minfo (void) Returns the mutual information of the random variables |
![]() | Print_Minfo (void) Print to stdout the mutual information of the random variables |
![]() | builddata (unsigned num_data) Builds data matrix |
![]() | readdata (unsigned num_data, char* f, unsigned first, unsigned second) Load random variables data from filef to array data. |
![]() | buildp (unsigned num_bins) It builds and initializes matrix of single frequecies p |
![]() | buildPjoint (unsigned num_bins) It builds and initializes matrix of joint frequencies |
![]() | assignbin (unsigned num_var, unsigned num_data) Calculate the bin of random variable num_var od the data[num_var][num_data]. |
![]() | Init_p (float init=0.0) Initializes p |
![]() | Init_Pjoint (float init=0.0) Initializes Pjoint |
Class for evaluating mutual information between two random variables
Random variables are discretized dividing their range values in bins. For each bin is computed its frequency, both for each single variable and the joint frequency. Methods can be used to evaluate the entropy of each variable, the joint entropy, the conditional entropy and the mutual information.
Alphabetic index HTML hierarchy of classes or Java