hep.aida.ref.pdf
Class RangeSet
- java.lang.Object
-
- hep.aida.ref.pdf.RangeSet
-
-
Constructor Summary
Constructors Constructor and Description RangeSet()Creates RangeSet with (-infinity, +infinity) valid interval, borders excludedRangeSet(double[] xMin, double[] xMax)RangeSet(double xMin, double xMax)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidexclude(double xMin, double xMax)Exclude [xMin, xMax] interval from the existing set of valid rangesvoidexcludeAll()Set empty range in all axes.doublegeneratePoint()voidinclude(double xMin, double xMax)Additive include/exclude of the range in given axis.voidincludeAll()Set full range in all axes.booleanisInRange(double point)doublelength()double[]lowerBounds()Return array of lower or upper Bounds for the current set of rangesstatic voidmain(java.lang.String[] args)doubleMINUS_INF()doublePLUS_INF()intsize()Returns current number of disjoint ranges (non-overlapping intervals)double[]upperBounds()Return array of upper Bounds for the current set of ranges
-
-
-
Constructor Detail
-
RangeSet
public RangeSet()
Creates RangeSet with (-infinity, +infinity) valid interval, borders excluded
-
RangeSet
public RangeSet(double xMin, double xMax)
-
RangeSet
public RangeSet(double[] xMin, double[] xMax)
-
-
Method Detail
-
size
public int size()
Returns current number of disjoint ranges (non-overlapping intervals)
-
length
public double length()
-
generatePoint
public double generatePoint()
-
lowerBounds
public double[] lowerBounds()
Return array of lower or upper Bounds for the current set of ranges- Specified by:
lowerBoundsin interfaceIRangeSet- Returns:
- Array of lower bounds for all valid ranges
-
upperBounds
public double[] upperBounds()
Description copied from interface:IRangeSetReturn array of upper Bounds for the current set of ranges- Specified by:
upperBoundsin interfaceIRangeSet- Returns:
- Array of upper bounds for all valid ranges
-
include
public void include(double xMin, double xMax)Additive include/exclude of the range in given axis.
-
exclude
public void exclude(double xMin, double xMax)Description copied from interface:IRangeSetExclude [xMin, xMax] interval from the existing set of valid ranges
-
includeAll
public void includeAll()
Set full range in all axes.- Specified by:
includeAllin interfaceIRangeSet
-
excludeAll
public void excludeAll()
Set empty range in all axes.- Specified by:
excludeAllin interfaceIRangeSet
-
main
public static void main(java.lang.String[] args)
-
-
DMelt 3.0 © DataMelt by jWork.ORG