|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
User level interface to 1D Histogram.
Fields inherited from interface hep.aida.IConstants |
OVERFLOW_BIN, UNDERFLOW_BIN, VERSION, VERSION_MAJOR, VERSION_MINOR |
Method Summary | |
void |
add(IHistogram1D h)
Modifies this histogram by adding the contents of h to it. |
IAxis |
axis()
Returns the X axis. |
double |
binCentre(int index)
Centre of the corresponding bin. |
int |
binEntries(int index)
Number of entries in the corresponding bin (ie the number of times fill was called for this bin). |
double |
binError(int index)
The error on this bin. |
double |
binHeight(int index)
Total height of the corresponding bin (ie the sum of the weights in this bin). |
int |
coordToIndex(double coord)
Convenience method, equivalent to axis().coordToIndex(coord). |
void |
fill(double x)
Fill histogram with weight 1. |
void |
fill(double x,
double weight)
Fill histogram with specified weight. |
double |
mean()
Returns the mean of the whole histogram as calculated on filling-time. |
double |
rms()
Returns the rms of the whole histogram as calculated on filling-time. |
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)
public void fill(double x, double weight)
public double binCentre(int index)
index
- the bin number (0...N-1) or OVERFLOW or UNDERFLOW.public int binEntries(int index)
index
- the bin number (0...N-1) or OVERFLOW or UNDERFLOW.public double binHeight(int index)
index
- the bin number (0...N-1) or OVERFLOW or UNDERFLOW.public double binError(int index)
index
- the bin number (0...N-1) or OVERFLOW or UNDERFLOW.public double mean()
public double rms()
public IAxis axis()
public int coordToIndex(double coord)
IAxis.coordToIndex(double)
public void add(IHistogram1D 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 |