|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.aida.ref.histogram.FixedAxis
Fixed-width axis; A reference implementation of hep.aida.IAxis.
Field Summary |
Fields inherited from interface hep.aida.IAxis |
OVERFLOW_BIN, UNDERFLOW_BIN |
Constructor Summary | |
FixedAxis(int bins,
double min,
double max)
Create an Axis |
Method Summary | |
double |
binCenter(int index)
|
double |
binLowerEdge(int index)
Get the lower edge of a bin. |
int |
bins()
Get the number of bins in the Axis. |
double |
binUpperEdge(int index)
Get the upper edge of a bin. |
double |
binWidth(int index)
Get the bin width. |
int |
coordToIndex(double coord)
Get the bin's index corresponding to an axis's value. |
boolean |
equals(Object o)
Check if two Axis are equal. |
boolean |
isFixedBinning()
|
double |
lowerEdge()
Get the Axis lower edge. |
double |
upperEdge()
Get the Axis upper edge. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FixedAxis(int bins, double min, double max)
bins
- Number of binsmin
- Minimum for axismax
- Maximum for axisMethod Detail |
public boolean equals(Object o)
o
- the Object to check
true
if o
is an instance of FixedAxis and
it has the same number of bins, minimum and bin width.public double binCenter(int index)
binCenter
in interface hep.aida.IAxis
public int bins()
bins
in interface hep.aida.IAxis
public double binLowerEdge(int index)
binLowerEdge
in interface hep.aida.IAxis
index
- the bin's index
index
corresponds
to the UNDERFLOW_BIN, Double.NEGATIVE_INFINITY is returned.
If index
corresponds to OVERFLOW_BIN, the
upper edge of the axis is returned.public double binUpperEdge(int index)
binUpperEdge
in interface hep.aida.IAxis
index
- the bin's index
index
corresponds
to the OVERFLOW_BIN, Double.POSITIVE_INFINITY is returned.
If index
corresponds to UNDERFLOW_BIN, the
lower edge of the axis is returned.public double binWidth(int index)
binWidth
in interface hep.aida.IAxis
index
- the bin's index. For a Fixed Axis the bin's width is constant.
public int coordToIndex(double coord)
coordToIndex
in interface hep.aida.IAxis
coord
- an axis value
coord
public double lowerEdge()
lowerEdge
in interface hep.aida.IAxis
public double upperEdge()
upperEdge
in interface hep.aida.IAxis
public boolean isFixedBinning()
isFixedBinning
in interface hep.aida.IAxis
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |