public class DoubleRange extends Interval1D<Double>
hi, lo| Constructor and Description |
|---|
DoubleRange(Double left,
Double right) |
| Modifier and Type | Method and Description |
|---|---|
static DoubleRange |
fromInterval1D(Interval1D<Double> interval) |
double |
length() |
double |
overlapAbsolute(DoubleRange other)
If the interval contains just a single point (i.e.
|
double |
overlapRelative(DoubleRange other)
Relative overlap, that is the overlap, divided by the length of the largest interval.
|
compareTo, contains, equals, getHi, getLo, hashCode, intersects, main, toStringpublic static DoubleRange fromInterval1D(Interval1D<Double> interval)
public double overlapAbsolute(DoubleRange other)
overlapRelative(DoubleRange).other - interval to compare topublic double overlapRelative(DoubleRange other)
other - interval to compare topublic final double length()
Copyright © 2017. All rights reserved.