|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthep.aida.ref.histogram.FixedAxis
public class 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)
Get the center of the specified bin. |
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()
Check if the IAxis has fixed binning, i.e. |
double |
lowerEdge()
Get the Axis lower edge. |
double |
upperEdge()
Get the Axis upper edge. |
| Methods inherited from class java.lang.Object |
|---|
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 axis| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objecto - 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)
IAxis
binCenter in interface IAxisindex - The bin number: 0 to bins()-1) for the in-range bins or OVERFLOW or UNDERFLOW.
public int bins()
bins in interface IAxispublic double binLowerEdge(int index)
binLowerEdge in interface IAxisindex - 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 IAxisindex - 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 IAxisindex - the bin's index. For a Fixed Axis the bin's width is constant.
public int coordToIndex(double coord)
coordToIndex in interface IAxiscoord - an axis value
coordpublic double lowerEdge()
lowerEdge in interface IAxispublic double upperEdge()
upperEdge in interface IAxispublic boolean isFixedBinning()
IAxis
isFixedBinning in interface IAxistrue if the binning is fixed, false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||