|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--gov.sns.tools.math.Interval
|
+--gov.sns.tools.math.ClosedInterval
Represents an open interval of the real line.
| Constructor Summary | |
ClosedInterval()
Default constructor - creates a new instance of Interval with one point, the origin. |
|
ClosedInterval(double pt)
Initializing constructor - creates a single point (zero length) interval given by the value of the argument pt. |
|
ClosedInterval(double min,
double max)
Initializing constructor - create a new open interval with specified endpoints. |
|
ClosedInterval(Interval I)
Copy constructor - create a new open interval initialized to the argument. |
|
| Method Summary | |
boolean |
contains(ClosedInterval I)
|
boolean |
equals(ClosedInterval I)
Are intervals equal |
boolean |
intersect(ClosedInterval I)
Is there a nonzero intersection between this interval and the argument. |
boolean |
membership(double x)
Is point a member of the open interval |
java.lang.String |
toString()
Return the contents of the interval as a String. |
| Methods inherited from class gov.sns.tools.math.Interval |
boundary, computeHull, equals, getMax, getMin, measure, midpoint, print, println, setMax, setMin |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ClosedInterval()
public ClosedInterval(double pt)
pt.
pt -
public ClosedInterval(double min,
double max)
min - left endpointmax - right endpointpublic ClosedInterval(Interval I)
I - interval to copy| Method Detail |
public boolean membership(double x)
x - point to test for membership
public boolean intersect(ClosedInterval I)
I - interval to be tested
public boolean contains(ClosedInterval I)
public boolean equals(ClosedInterval I)
I - interval object to be checked for equality
public java.lang.String toString()
String.
return string representation of interval
toString in class IntervalObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||