|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthep.aida.ref.histogram.VariableAxis
public class VariableAxis
Variable-width axis; A reference implementation of hep.aida.IAxis.
| Field Summary |
|---|
| Fields inherited from interface hep.aida.IAxis |
|---|
OVERFLOW_BIN, UNDERFLOW_BIN |
| Constructor Summary | |
|---|---|
VariableAxis(double[] edges)
Constructs and returns an axis with the given bin edges. |
|
| Method Summary | |
|---|---|
double |
binCenter(int index)
Get the center of the specified bin. |
double |
binLowerEdge(int index)
Get the lower edge of the specified bin. |
int |
bins()
The number of bins (excluding underflow and overflow) on the IAxis. |
double |
binUpperEdge(int index)
Get the upper edge of the specified bin. |
double |
binWidth(int index)
Get the width of the specified bin. |
int |
coordToIndex(double coord)
Convert a coordinate on the axis to a bin number. |
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 lower edge of the IAxis. |
double |
upperEdge()
Get the upper edge of the IAxis. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VariableAxis(double[] edges)
edges - the bin boundaries the partition shall have;
must be sorted ascending and must not contain multiple identical elements.
IllegalArgumentException - if edges.length < 1.| Method Detail |
|---|
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 double binLowerEdge(int index)
IAxis
binLowerEdge in interface IAxisindex - The bin number: 0 to bins()-1 for the in-range bins or OVERFLOW or UNDERFLOW.
public int bins()
IAxis
bins in interface IAxispublic double binUpperEdge(int index)
IAxis
binUpperEdge in interface IAxisindex - The bin number: 0 to bins()-1 for the in-range bins or OVERFLOW or UNDERFLOW.
public double binWidth(int index)
IAxis
binWidth in interface IAxisindex - The bin number: 0 to bins()-1) for the in-range bins or OVERFLOW or UNDERFLOW.
public int coordToIndex(double coord)
IAxis
coordToIndex in interface IAxiscoord - The coordinate to be converted.
public double lowerEdge()
IAxis
lowerEdge in interface IAxispublic double upperEdge()
IAxis
upperEdge in interface IAxispublic boolean isFixedBinning()
IAxis
isFixedBinning in interface IAxistrue if the binning is fixed, false otherwise.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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||