|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.aida.ref.function.RangeSet
This class handles multiple ranges along one axis. Overlapping ranges are merged in one bigger range.
Constructor Summary | |
RangeSet()
Creates RangeSet with (-infinity, +infinity) valid interval, borders excluded |
|
RangeSet(double[] xMin,
double[] xMax)
|
|
RangeSet(double xMin,
double xMax)
|
|
RangeSet(String range)
Create a RangeSet from a String. |
Method Summary | |
void |
exclude(double xMin,
double xMax)
|
void |
excludeAll()
Set empty range in all axes. |
double |
generatePoint()
|
void |
include(double xMin,
double xMax)
Additive include/exclude of the range in given axis. |
void |
includeAll()
Set full range in all axes. |
boolean |
isInRange(double point)
|
double |
length()
|
double[] |
lowerBounds()
Return array of lower or upper Bounds for the current set of ranges |
static void |
main(String[] args)
|
double |
MINUS_INF()
|
double |
PLUS_INF()
|
int |
size()
Returns current number of disjoint ranges (non-overlapping intervals) |
double[] |
upperBounds()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RangeSet()
public RangeSet(double xMin, double xMax)
public RangeSet(double[] xMin, double[] xMax)
public RangeSet(String range)
Method Detail |
public double PLUS_INF()
PLUS_INF
in interface hep.aida.IRangeSet
public double MINUS_INF()
MINUS_INF
in interface hep.aida.IRangeSet
public int size()
size
in interface hep.aida.IRangeSet
public double length()
public double generatePoint()
public double[] lowerBounds()
lowerBounds
in interface hep.aida.IRangeSet
public double[] upperBounds()
upperBounds
in interface hep.aida.IRangeSet
public void include(double xMin, double xMax)
include
in interface hep.aida.IRangeSet
public void exclude(double xMin, double xMax)
exclude
in interface hep.aida.IRangeSet
public void includeAll()
includeAll
in interface hep.aida.IRangeSet
public void excludeAll()
excludeAll
in interface hep.aida.IRangeSet
public boolean isInRange(double point)
isInRange
in interface hep.aida.IRangeSet
public static void main(String[] args)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |