Class CoupledFieldsMoments
- java.lang.Object
-
- org.hortonmachine.gears.utils.math.CoupledFieldsMoments
-
public class CoupledFieldsMoments extends Object
The cb model (coupledfieldmoments).
It 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 ⇒ 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 centered, if the functioning mode is ′histogram′, or non-centered, 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:
- the file containing the data of the independent variable;
- the file containing the data which will be used as dependent variable;
- the first moment to calculate;
- the last moment to calculate;
- the insertion of an optional comment is also requested;
- Returns:
- file containing: 1) the number of elements in each interval; 2) the mean value of the data in abscissa; 3) the mean value of the data in ordinate; n+2) the n-esimal moment of the data in ordinate.
Note: 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. Moreover the program assumes that the real data are preceded by two arrays, like in the files derived from a DEM.
- Inputs:
-
-
Constructor Summary
Constructors Constructor Description CoupledFieldsMoments()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[][]process(RenderedImage map1RI, RenderedImage map2RI, int pBins, int pFirst, int pLast, IHMProgressMonitor pm, int binmode)
-
-
-
Method Detail
-
process
public double[][] process(RenderedImage map1RI, RenderedImage map2RI, int pBins, int pFirst, int pLast, IHMProgressMonitor pm, int binmode)
-
-