a set of C++ library classes
for neural networks development



class MutualMatrix

Class for building mutual information among all the couples of a set of random variables
This class builds matrices of mutual information, joint entropy, and mutual information error (if the random variables represent errors).

Public Methods

[more] MutualMatrix (unsigned num_data, unsigned num_bins, char* f, unsigned first, unsigned last, float* binlimits = 0, float min_v = 0.0, float max_v = 1.0)
Constructor.
[more] ~MutualMatrix ()
Destructor
[more]void Calc_JointEntropy_Matrix (void)
It calculates the joint entropy matrix
It calculates the joint entropy matrix.
[more]float SumElements_JointEntropy_Matrix (void)
It sums the values of the elements of the joint entropy matrix
[more]void Print_JointEntropy_Matrix (void)
It prints to stdout the joint entropy matrix
[more]void Calc_MutualInfo_Matrix (void)
It calculates the mutual information matrix
It calculates the mutual information matrix.
[more]float SumElements_MutualInfo_Matrix (void)
It sums the values of the elements of the mutual information matrix
[more]void Print_MutualInfo_Matrix (void)
It prints to stdout the mutual information matrix
[more]void Calc_MutualInfoError2_Matrix (void)
It calculates the mutual information error matrix without considering single errors
It calculates the mutual information error matrix.
[more]float SumElements_MutualInfoError2_Matrix (void)
It sums the values of the elements of the mutual information error matrix without considering single errors
[more]void Print_MutualInfoError2_Matrix (void)
It prints to stdout the mutual error information matrix
[more]void Calc_MutualInfoError_Matrix (void)
It calculates the mutual information error matrix
It calculates the mutual information error matrix.
[more]float SumElements_MutualInfoError_Matrix (void)
It sums the values of the elements of the mutual information error matrix
[more]void Print_MutualInfoError_Matrix (void)
It prints to stdout the mutual error information matrix
[more]float Read_SumMiM (void)
It returns the current value of the sum of the values of the elements of the mutual information matrix
[more]float Read_SumEnM (void)
It returns the current value of the sum of the values of the elements of the joint entropy matrix
[more]float Read_SumMeM2 (void)
It returns the current value of the sum of the values of the elements of the MeM2 matrix
[more]float Read_SumMeM (void)
It returns the current value of the sum of the values of the elements of the MeM matrix


Documentation

Class for building mutual information among all the couples of a set of random variables
This class builds matrices of mutual information, joint entropy, and mutual information error (if the random variables represent errors).
o MutualMatrix(unsigned num_data, unsigned num_bins, char* f, unsigned first, unsigned last, float* binlimits = 0, float min_v = 0.0, float max_v = 1.0)
Constructor.
Parameters:
num_data - random variable values cardinality
num_bins - number of bins by wich each range of values of the random variables is subdivided
f - file containing the values of random variables. This file must have columns corresponding to different variables separated by at least a blank.
- first the column in the file of the first variable. The columns are numbered from 1 to up.
- last the column in the file of last variable to be considered
binlimits - Array of the limit values of the bins. Its size must be num_bins + 1. If it is not specified the bins are equally spaced between min_v and max_v
min_v - Minimum of the random variable value
max_v - Maximum of the random variable value

o ~MutualMatrix()
Destructor

ovoid Calc_JointEntropy_Matrix(void)
It calculates the joint entropy matrix
It calculates the joint entropy matrix. Each element correspond to to the joint entropy between two random variables. It is a simmetric matrix and so is calculated only the inferior triangular matrix without the diagonal.

ofloat SumElements_JointEntropy_Matrix(void)
It sums the values of the elements of the joint entropy matrix
Returns:
value of the sum

ovoid Print_JointEntropy_Matrix(void)
It prints to stdout the joint entropy matrix
See Also:
Calc_JointEntropy_Matrix

ovoid Calc_MutualInfo_Matrix(void)
It calculates the mutual information matrix
It calculates the mutual information matrix. Each element correspond to to the mutual information between two random variables. It is a simmetric matrix and so is calculated only the inferior triangular matrix without the diagonal.

ofloat SumElements_MutualInfo_Matrix(void)
It sums the values of the elements of the mutual information matrix
Returns:
value of the sum

ovoid Print_MutualInfo_Matrix(void)
It prints to stdout the mutual information matrix
See Also:
Calc_MutualInfo_Matrix

ovoid Calc_MutualInfoError2_Matrix(void)
It calculates the mutual information error matrix without considering single errors
It calculates the mutual information error matrix. Each element correspond to to the mutual information error between two random variables not considering single errors. It is a simmetric matrix and so is calculated only the inferior triangular matrix without the diagonal.

ofloat SumElements_MutualInfoError2_Matrix(void)
It sums the values of the elements of the mutual information error matrix without considering single errors
Returns:
value of the sum

ovoid Print_MutualInfoError2_Matrix(void)
It prints to stdout the mutual error information matrix
See Also:
Calc_MutualInfoError2_Matrix

ovoid Calc_MutualInfoError_Matrix(void)
It calculates the mutual information error matrix
It calculates the mutual information error matrix. Each element correspond to to the mutual information error between two random variables. It is a simmetric matrix and so is calculated only the inferior triangular matrix without the diagonal.

ofloat SumElements_MutualInfoError_Matrix(void)
It sums the values of the elements of the mutual information error matrix
Returns:
value of the sum

ovoid Print_MutualInfoError_Matrix(void)
It prints to stdout the mutual error information matrix
See Also:
Calc_MutualInfoError_Matrix

ofloat Read_SumMiM(void)
It returns the current value of the sum of the values of the elements of the mutual information matrix

ofloat Read_SumEnM(void)
It returns the current value of the sum of the values of the elements of the joint entropy matrix

ofloat Read_SumMeM2(void)
It returns the current value of the sum of the values of the elements of the MeM2 matrix

ofloat Read_SumMeM(void)
It returns the current value of the sum of the values of the elements of the MeM matrix


This class has no child classes.
See Also:
MutualInfo2
MIError2
Outerr

Alphabetic index HTML hierarchy of classes or Java


Last Updated February 2001
For comments and suggestions mail to Giorgio Valentini