Calculates the histogram of a set of data contained in a matrix with respect to the set of data contained in another matrix. In substance, a map of R2 to R2, in which each point of a bidimensional system (identified by the values contained in a matrix) is mapped in a second bidimensional system, is produced. The data of the first set are then grouped in a prefixed number of intervals and the mean value of the independent variable for each interval is calculated.
To every interval corresponds a certain set of values of the second set, of which the mean value is calculated, and a designate number of moments which can be either centred, if the functioning mode is histogram, or non-centred, if the mode is 'moments'.
If the number of intervals assigned is lesser than one, the data are subdivided in classes of data having the same abscissa.

Inputs



Output



Notes

The output file is not a map and contains: The program uses the memory intensely. Therefore if we decide to have so many intervals as the data in abscissa, the program could not function correctly.