Documentation of 'hep.aida.tdouble.ref.DoubleFixedAxis' Java class
DoubleFixedAxis
hep.aida.tdouble.ref

Class DoubleFixedAxis

  • All Implemented Interfaces:
    DoubleIAxis, java.io.Serializable


    public class DoubleFixedAxis
    extends java.lang.Object
    implements DoubleIAxis
    Fixed-width axis; A reference implementation of hep.aida.IAxis.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      DoubleFixedAxis(int bins, double min, double max)
      Create an Axis
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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.
      double upperEdge()
      Upper axis edge.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DoubleFixedAxis

        public DoubleFixedAxis(int bins,
                               double min,
                               double max)
        Create an Axis
        Parameters:
        bins - Number of bins
        min - Minimum for axis
        max - Maximum for axis
    • Method Detail

      • binCentre

        public double binCentre(int index)
        Description copied from interface: DoubleIAxis
        Centre of the bin specified.
        Specified by:
        binCentre in interface DoubleIAxis
        Parameters:
        index - Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.
      • binLowerEdge

        public double binLowerEdge(int index)
        Description copied from interface: DoubleIAxis
        Lower edge of the specified bin.
        Specified by:
        binLowerEdge in interface DoubleIAxis
        Parameters:
        index - Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.
        Returns:
        the lower edge of the bin; for the underflow bin this is Double.NEGATIVE_INFINITY.
      • bins

        public int bins()
        Description copied from interface: DoubleIAxis
        The number of bins (excluding underflow and overflow) on the axis.
        Specified by:
        bins in interface DoubleIAxis
      • binUpperEdge

        public double binUpperEdge(int index)
        Description copied from interface: DoubleIAxis
        Upper edge of the specified bin.
        Specified by:
        binUpperEdge in interface DoubleIAxis
        Parameters:
        index - Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.
        Returns:
        the upper edge of the bin; for the overflow bin this is Double.POSITIVE_INFINITY.
      • binWidth

        public double binWidth(int index)
        Description copied from interface: DoubleIAxis
        Width of the bin specified.
        Specified by:
        binWidth in interface DoubleIAxis
        Parameters:
        index - Bin number (0...bins()-1) or OVERFLOW or UNDERFLOW.
      • coordToIndex

        public int coordToIndex(double coord)
        Description copied from interface: DoubleIAxis
        Converts 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:
        coordToIndex in interface DoubleIAxis
      • lowerEdge

        public double lowerEdge()
        Description copied from interface: DoubleIAxis
        Lower axis edge.
        Specified by:
        lowerEdge in interface DoubleIAxis
      • upperEdge

        public double upperEdge()
        Description copied from interface: DoubleIAxis
        Upper axis edge.
        Specified by:
        upperEdge in interface DoubleIAxis

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.