| Constructor and Description |
|---|
RealRangeArray() |
RealRangeArray(List<Real2Range> r2rList,
RealRange.Direction dir) |
RealRangeArray(List<RealRange> rangeList) |
RealRangeArray(Real2Range textBox,
RealRange.Direction direction) |
RealRangeArray(RealRangeArray array)
deep copy
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(RealRange range) |
void |
addCaps(Real2Range r2r) |
void |
addCaps(Real2Range r2r,
RealRange.Direction dir) |
void |
addTerminatingCaps(Double xmin,
Double xmax)
add virtual ends to the array
|
void |
debug() |
boolean |
equals(Object obj) |
void |
extendRangesBy(double tolerance)
adds tolerance to ends of ranges
see realRange.extendsRangesBy() for positive and negative tolerance
if result means ranges overlap, takes the mean
|
void |
format(int decimalPlaces) |
RealRange |
get(int serial) |
RealArray |
getGaps() |
int |
hashCode() |
boolean |
includes(RealRange rr)
is the range completely contained within any subrange?
|
RealRangeArray |
inverse()
create array representing the gaps in this
gaps at ends are NOT filled
does not alter this
|
Iterator<RealRange> |
iterator() |
RealRangeArray |
plus(RealRangeArray array) |
void |
removeLessThan(double rangeMin)
remove small ranges (e.g.
|
void |
setDirection(RealRange.Direction direction) |
int |
size() |
void |
sort() |
void |
sortAndRemoveOverlapping()
sort ranges into order and merge overlapping ones
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic RealRangeArray()
public RealRangeArray(RealRangeArray array)
array - public RealRangeArray(List<Real2Range> r2rList, RealRange.Direction dir)
public RealRangeArray(Real2Range textBox, RealRange.Direction direction)
public void add(RealRange range)
public void sort()
public void sortAndRemoveOverlapping()
public int size()
public RealRange get(int serial)
public void debug()
public RealRangeArray plus(RealRangeArray array)
public RealRangeArray inverse()
public void addCaps(Real2Range r2r)
public void addCaps(Real2Range r2r, RealRange.Direction dir)
public void addTerminatingCaps(Double xmin, Double xmax)
xmin - xmax - public void removeLessThan(double rangeMin)
rangeMin - public boolean includes(RealRange rr)
rr - public void setDirection(RealRange.Direction direction)
public void format(int decimalPlaces)
public RealArray getGaps()
public void extendRangesBy(double tolerance)
tolerance - Copyright © 1994–2024 Peter Murray-Rust. All rights reserved.