|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthep.aida.ref.function.RangeSet
public class 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)
Exclude [xMin, xMax] interval from the existing set of valid ranges |
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 |
double |
MINUS_INF()
|
double |
PLUS_INF()
|
int |
size()
Returns current number of disjoint ranges (non-overlapping intervals) |
double[] |
upperBounds()
Return array of upper Bounds for the current set of ranges |
| Methods inherited from class java.lang.Object |
|---|
equals, 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 IRangeSetpublic double MINUS_INF()
MINUS_INF in interface IRangeSetpublic int size()
size in interface IRangeSetpublic double length()
public double generatePoint()
public double[] lowerBounds()
lowerBounds in interface IRangeSetpublic double[] upperBounds()
IRangeSet
upperBounds in interface IRangeSet
public void include(double xMin,
double xMax)
include in interface IRangeSetxMin - - lower bound of a new valid rangexMax - - upper bound of a new valid range
public void exclude(double xMin,
double xMax)
IRangeSet
exclude in interface IRangeSetxMin - - lower bound of range to be excludedxMax - - upper bound of range to be excludedpublic void includeAll()
includeAll in interface IRangeSetpublic void excludeAll()
excludeAll in interface IRangeSetpublic boolean isInRange(double point)
isInRange in interface IRangeSet
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||