|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.kernel.math.IntervalEquiv
public class IntervalEquiv
This class is used to compare intervals for equivalence. Two intervals A and B are equivalent if their lower and upper bounds are equivalent, respectively.
Constructor Summary | |
---|---|
IntervalEquiv(double tolerance)
Creates a new interval equivalence tester with the provided tolerance. |
Method Summary | |
---|---|
boolean |
areEquiv(Interval value1,
Interval value2)
Indicates if the provided intervals are equivalent. |
DoubleEquiv |
getDoubleTester()
Returns the double equivalence tester used by this interval equivalence tester. |
double |
getTolerance()
Returns the tolerance used by this equivalence tester. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntervalEquiv(double tolerance)
tolerance
- the maximum amount by which two bounds can differ, but
still be considered equivalent.Method Detail |
---|
public double getTolerance()
public DoubleEquiv getDoubleTester()
public boolean areEquiv(Interval value1, Interval value2)
areEquiv
in interface EquivTester<Interval>
value1
- an interval.value2
- an interval.
true
if the provided intervals are equivalent,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |