|
AIDA API Version 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
User level interface to 2D Histogram.
Method Summary | |
void |
add(IHistogram2D hist)
Add to this IHistogram2D the contents of another IHistogram2D. |
int |
binEntries(int indexX,
int indexY)
Number of entries in the corresponding bin (ie the number of times fill was called for this bin). |
int |
binEntriesX(int index)
Sum of all the entries of the bins along a given x bin. |
int |
binEntriesY(int index)
Sum of all the entries of the bins along a given y bin. |
double |
binError(int indexX,
int indexY)
The error of a given bin. |
double |
binHeight(int indexX,
int indexY)
Total height of a give bin (ie the sum of the weights in this bin). |
double |
binHeightX(int index)
Sum of all the heights of the bins along a given x bin. |
double |
binHeightY(int index)
Sum of all the heights of the bins along a given y bin. |
double |
binMeanX(int indexX,
int indexY)
The weighted mean along the x axis of a given bin. |
double |
binMeanY(int indexX,
int indexY)
The weighted mean along the y axis of a given bin. |
int |
coordToIndexX(double coord)
Get the bin number corresponding to a given coordinate along the x axis. |
int |
coordToIndexY(double coord)
Get the bin number corresponding to a given coordinate along the y axis. |
void |
fill(double x,
double y)
Fill the IHistogram2D with a couple of values and the corresponding weight. |
void |
fill(double x,
double y,
double weight)
Fill the IHistogram2D with a couple of values and the corresponding weight. |
double |
meanX()
The mean of the in-range data of the IHistogram2D along the x axis. |
double |
meanY()
The mean of the in-range data of the IHistogram2D along the y axis. |
double |
rmsX()
The RMS of the in-range data of the IHistogram2D along the x axis. |
double |
rmsY()
The RMS of the in-range data of the IHistogram2D along the y axis. |
IAxis |
xAxis()
Get the x axis of the IHistogram2D. |
IAxis |
yAxis()
Get the y axis of the IHistogram2D. |
Methods inherited from interface hep.aida.IHistogram |
allEntries, equivalentBinEntries, extraEntries, maxBinHeight, minBinHeight, scale, sumAllBinHeights, sumBinHeights, sumExtraBinHeights |
Methods inherited from interface hep.aida.IBaseHistogram |
annotation, dimension, entries, nanEntries, reset, setTitle, title |
Method Detail |
public void fill(double x, double y) throws IllegalArgumentException
x
- The x value to be filled in.y
- The y value to be filled in.
IllegalArgumentException
- If the weight is <0 or >1 (?).public void fill(double x, double y, double weight) throws IllegalArgumentException
x
- The x value to be filled in.y
- The y value to be filled in.weight
- The corresponding weight (by default 1).
IllegalArgumentException
- If the weight is <0 or >1 (?).public double binMeanX(int indexX, int indexY) throws IllegalArgumentException
indexX
- The x bin number (0...N-1) or OVERFLOW or UNDERFLOW.indexY
- The y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
IllegalArgumentException
- If the indexes are not a valid bin number.public double binMeanY(int indexX, int indexY) throws IllegalArgumentException
indexX
- The x bin number (0...N-1) or OVERFLOW or UNDERFLOW.indexY
- The y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
IllegalArgumentException
- If the indexes are not a valid bin number.public int binEntries(int indexX, int indexY) throws IllegalArgumentException
indexX
- The x bin number (0...N-1) or OVERFLOW or UNDERFLOW.indexY
- The y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
IllegalArgumentException
- If the indexes are not a valid bin number.public int binEntriesX(int index) throws IllegalArgumentException
index
- The x bin number (0...N-1) or OVERFLOW or UNDERFLOW.
IllegalArgumentException
- If the index id not a valid bin number.public int binEntriesY(int index) throws IllegalArgumentException
index
- The y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
IllegalArgumentException
- If the index id not a valid bin number.public double binHeight(int indexX, int indexY) throws IllegalArgumentException
indexX
- The x bin number (0...N-1) or OVERFLOW or UNDERFLOW.indexY
- The y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
IllegalArgumentException
- If the indexes are not a valid bin number.public double binHeightX(int index) throws IllegalArgumentException
index
- The x bin number (0...N-1) or OVERFLOW or UNDERFLOW.
IllegalArgumentException
- If the index id not a valid bin number.public double binHeightY(int index) throws IllegalArgumentException
index
- The y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
IllegalArgumentException
- If the index id not a valid bin number.public double binError(int indexX, int indexY) throws IllegalArgumentException
indexX
- The x bin number (0...N-1) or OVERFLOW or UNDERFLOW.indexY
- The y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
IllegalArgumentException
- If the indexes are not a valid bin number.public double meanX()
public double meanY()
public double rmsX()
public double rmsY()
public IAxis xAxis()
public IAxis yAxis()
public int coordToIndexX(double coord)
coord
- The coordinalte along the x axis.
IAxis.coordToIndex(double)
public int coordToIndexY(double coord)
coord
- The coordinalte along the y axis.
IAxis.coordToIndex(double)
public void add(IHistogram2D hist) throws IllegalArgumentException
hist
- The IHistogram2D to be added to this IHistogram2D.
IllegalArgumentException
- If the IHistogram2Ds binnings are incompatible.
|
AIDA API Version 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |