Documentation of 'hep.aida.IRangeSet' Java class
IRangeSet
hep.aida

Interface IRangeSet

  • All Known Implementing Classes:
    RangeSet, RangeSet


    public interface IRangeSet
    User level interface to RangeSet. Proposed rules for ranges: - By default (no arguments) RangeSet object is created with one valid range: (-infinity, +infinity). - size=0 means no valid ranges (isInRange(double point) will return false for any point). It also can be used to check if any range is set - RangeSet include valid interval only if size!=0. - RangeSet can be smart, e.g merge overlapping valid ranges. So size() does not always equal to the number of times user call include method.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void exclude(double xMin, double xMax)
      Exclude [xMin, xMax] interval from the existing set of valid ranges
      void excludeAll()
      Set empty range.
      void include(double xMin, double xMax)
      Add [xMin, xMax] interval to existing set of valid ranges
      void includeAll()
      Set full range (from MINUS_INF to PLUS_INF ).
      boolean isInRange(double point) 
      double[] lowerBounds()
      Return array of lower Bounds for the current set of ranges
      double MINUS_INF() 
      double PLUS_INF() 
      int size()
      Return current number of disjoint ranges (non-overlapping intervals).
      double[] upperBounds()
      Return array of upper Bounds for the current set of ranges
    • Method Detail

      • lowerBounds

        double[] lowerBounds()
        Return array of lower Bounds for the current set of ranges
        Returns:
        Array of lower bounds for all valid ranges
      • upperBounds

        double[] upperBounds()
        Return array of upper Bounds for the current set of ranges
        Returns:
        Array of upper bounds for all valid ranges
      • include

        void include(double xMin,
                     double xMax)
        Add [xMin, xMax] interval to existing set of valid ranges
        Parameters:
        xMin - - lower bound of a new valid range
        xMax - - upper bound of a new valid range
      • exclude

        void exclude(double xMin,
                     double xMax)
        Exclude [xMin, xMax] interval from the existing set of valid ranges
        Parameters:
        xMin - - lower bound of range to be excluded
        xMax - - upper bound of range to be excluded
      • includeAll

        void includeAll()
        Set full range (from MINUS_INF to PLUS_INF ).
      • excludeAll

        void excludeAll()
        Set empty range.
      • isInRange

        boolean isInRange(double point)
      • size

        int size()
        Return current number of disjoint ranges (non-overlapping intervals). Note: it is not always equal to the number of times user set the range
        Returns:
        Number of disjoint ranges
      • PLUS_INF

        double PLUS_INF()
      • MINUS_INF

        double MINUS_INF()

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.