|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
User level interface to 2D Histogram.
Fields inherited from interface hep.aida.IConstants |
OVERFLOW_BIN, UNDERFLOW_BIN, VERSION, VERSION_MAJOR, VERSION_MINOR |
Method Summary | |
void |
add(IHistogram2D h)
Modifies this histogram by adding the contents of h to it. |
double |
binCentreX(int indexX)
Centre along x or y of the corresponding bin. |
double |
binCentreY(int indexY)
|
int |
binEntries(int indexX,
int indexY)
The number of entries (ie the number of times fill was called for this bin). |
int |
binEntriesX(int indexX)
Equivalent to projectionX().binEntries(indexX). |
int |
binEntriesY(int indexY)
Equivalent to projectionY().binEntries(indexY). |
double |
binError(int indexX,
int indexY)
The error on this bin. |
double |
binHeight(int indexX,
int indexY)
Total height of the corresponding bin (ie the sum of the weights in this bin). |
double |
binHeightX(int indexX)
Equivalent to projectionX().binHeight(indexX). |
double |
binHeightY(int indexY)
Equivalent to projectionY().binHeight(indexY). |
int |
coordToIndexX(double coordX)
Convenience method, equivalent to xAxis().coordToIndex(coord). |
int |
coordToIndexY(double coordY)
Convenience method, equivalent to yAxis().coordToIndex(coord). |
void |
fill(double x,
double y)
Fill the histogram with weight 1. |
void |
fill(double x,
double y,
double weight)
Fill the histogram with specified weight. |
double |
meanX()
Returns the mean of the histogram, as calculated on filling-time projected on the X axis. |
double |
meanY()
Returns the mean of the histogram, as calculated on filling-time projected on the Y axis. |
double |
rmsX()
Returns the rms of the histogram as calculated on filling-time projected on the X axis. |
double |
rmsY()
Returns the rms of the histogram as calculated on filling-time projected on the Y axis. |
IAxis |
xAxis()
Return the X axis. |
IAxis |
yAxis()
Return the Y axis. |
Methods inherited from interface hep.aida.IHistogram |
allEntries, annotation, dimension, entries, equivalentBinEntries, extraEntries, label, maxBinHeight, minBinHeight, reset, setLabel, sumAllBinHeights, sumBinHeights, sumExtraBinHeights, title |
Method Detail |
public void fill(double x, double y)
public void fill(double x, double y, double weight)
public double binCentreX(int indexX)
index
- the x (or y) bin number (0...Nx-1) or OVERFLOW or UNDERFLOW.public double binCentreY(int indexY)
public int binEntries(int indexX, int indexY)
indexX
- the x bin number (0...Nx-1) or OVERFLOW or UNDERFLOW.indexY
- the y bin number (0...Ny-1) or OVERFLOW or UNDERFLOW.public int binEntriesX(int indexX)
public int binEntriesY(int indexY)
public double binHeight(int indexX, int indexY)
indexX
- the x bin number (0...Nx-1) or OVERFLOW or UNDERFLOW.indexY
- the y bin number (0...Ny-1) or OVERFLOW or UNDERFLOW.public double binHeightX(int indexX)
public double binHeightY(int indexY)
public double binError(int indexX, int indexY)
indexX
- the x bin number (0...Nx-1) or OVERFLOW or UNDERFLOW.indexY
- the y bin number (0...Ny-1) or OVERFLOW or UNDERFLOW.public double meanX()
public double meanY()
public double rmsX()
public double rmsY()
public IAxis xAxis()
public IAxis yAxis()
public int coordToIndexX(double coordX)
IAxis.coordToIndex(double)
public int coordToIndexY(double coordY)
IAxis.coordToIndex(double)
public void add(IHistogram2D h) throws IllegalArgumentException
h
- The histogram to be added to this histogramIllegalArgumentException
- if histogram binnings are incompatible
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |