|
Colt 1.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthep.aida.ref.VariableAxis
Variable-width axis; A reference implementation of hep.aida.IAxis.
Field Summary | |
protected int |
bins
|
protected double[] |
edges
|
protected double |
min
|
Fields inherited from interface hep.aida.IAxis |
serialVersionUID |
Constructor Summary | |
VariableAxis(double[] edges)
Constructs and returns an axis with the given bin edges. |
Method Summary | |
double |
binCentre(int index)
Centre of the bin specified. |
double |
binLowerEdge(int index)
Lower edge of the specified bin. |
int |
bins()
The number of bins (excluding underflow and overflow) on the axis. |
double |
binUpperEdge(int index)
Upper edge of the specified bin. |
double |
binWidth(int index)
Width of the bin specified. |
int |
coordToIndex(double coord)
Converts a coordinate on the axis to a bin number. |
double |
lowerEdge()
Lower axis edge. |
protected static String |
toString(double[] array)
Returns a string representation of the specified array. |
double |
upperEdge()
Upper axis edge. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected double min
protected int bins
protected double[] edges
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 binCentre(int index)
IAxis
binCentre
in interface IAxis
index
- Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.public double binLowerEdge(int index)
IAxis
binLowerEdge
in interface IAxis
index
- Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.
public int bins()
IAxis
bins
in interface IAxis
public double binUpperEdge(int index)
IAxis
binUpperEdge
in interface IAxis
index
- Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.
public double binWidth(int index)
IAxis
binWidth
in interface IAxis
index
- Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.public int coordToIndex(double coord)
IAxis
coordToIndex
in interface IAxis
public double lowerEdge()
IAxis
lowerEdge
in interface IAxis
protected static String toString(double[] array)
public double upperEdge()
IAxis
upperEdge
in interface IAxis
|
Colt 1.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |