hep.aida.tfloat.ref
Class FloatFixedAxis
- java.lang.Object
-
- hep.aida.tfloat.ref.FloatFixedAxis
-
- All Implemented Interfaces:
- FloatIAxis, java.io.Serializable
public class FloatFixedAxis extends java.lang.Object implements FloatIAxis
Fixed-width axis; A reference implementation of hep.aida.IAxis.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description FloatFixedAxis(int bins, float min, float max)Create an Axis
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description floatbinCentre(int index)Centre of the bin specified.floatbinLowerEdge(int index)Lower edge of the specified bin.intbins()The number of bins (excluding underflow and overflow) on the axis.floatbinUpperEdge(int index)Upper edge of the specified bin.floatbinWidth(int index)Width of the bin specified.intcoordToIndex(float coord)Converts a coordinate on the axis to a bin number.floatlowerEdge()Lower axis edge.floatupperEdge()Upper axis edge.
-
-
-
Constructor Detail
-
FloatFixedAxis
public FloatFixedAxis(int bins, float min, float max)Create an Axis- Parameters:
bins- Number of binsmin- Minimum for axismax- Maximum for axis
-
-
Method Detail
-
binCentre
public float binCentre(int index)
Description copied from interface:FloatIAxisCentre of the bin specified.- Specified by:
binCentrein interfaceFloatIAxis- Parameters:
index- Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.
-
binLowerEdge
public float binLowerEdge(int index)
Description copied from interface:FloatIAxisLower edge of the specified bin.- Specified by:
binLowerEdgein interfaceFloatIAxis- Parameters:
index- Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.- Returns:
- the lower edge of the bin; for the underflow bin this is Float.NEGATIVE_INFINITY.
-
bins
public int bins()
Description copied from interface:FloatIAxisThe number of bins (excluding underflow and overflow) on the axis.- Specified by:
binsin interfaceFloatIAxis
-
binUpperEdge
public float binUpperEdge(int index)
Description copied from interface:FloatIAxisUpper edge of the specified bin.- Specified by:
binUpperEdgein interfaceFloatIAxis- Parameters:
index- Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.- Returns:
- the upper edge of the bin; for the overflow bin this is Float.POSITIVE_INFINITY.
-
binWidth
public float binWidth(int index)
Description copied from interface:FloatIAxisWidth of the bin specified.- Specified by:
binWidthin interfaceFloatIAxis- Parameters:
index- Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.
-
coordToIndex
public int coordToIndex(float coord)
Description copied from interface:FloatIAxisConverts a coordinate on the axis to a bin number. If the coordinate is < lowerEdge returns UNDERFLOW, and if the coordinate is >= upperEdge returns OVERFLOW.- Specified by:
coordToIndexin interfaceFloatIAxis
-
lowerEdge
public float lowerEdge()
Description copied from interface:FloatIAxisLower axis edge.- Specified by:
lowerEdgein interfaceFloatIAxis
-
upperEdge
public float upperEdge()
Description copied from interface:FloatIAxisUpper axis edge.- Specified by:
upperEdgein interfaceFloatIAxis
-
-
DMelt 3.0 © DataMelt by jWork.ORG