|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthep.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.IRangeSetpublic double MINUS_INF()
MINUS_INF in interface hep.aida.IRangeSetpublic int size()
size in interface hep.aida.IRangeSetpublic double length()
public double generatePoint()
public double[] lowerBounds()
lowerBounds in interface hep.aida.IRangeSetpublic 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.IRangeSetpublic void includeAll()
includeAll in interface hep.aida.IRangeSetpublic void excludeAll()
excludeAll in interface hep.aida.IRangeSetpublic boolean isInRange(double point)
isInRange in interface hep.aida.IRangeSetpublic 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 | |||||||||