|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.geometry.euclidean.oned.Interval
public class Interval
This class represents a 1D interval.
IntervalsSet
Field Summary | |
---|---|
private double |
lower
The lower bound of the interval. |
private double |
upper
The upper bound of the interval. |
Constructor Summary | |
---|---|
Interval(double lower,
double upper)
Simple constructor. |
Method Summary | |
---|---|
double |
getLength()
Get the length of the interval. |
double |
getLower()
Get the lower bound of the interval. |
double |
getMidPoint()
Get the midpoint of the interval. |
double |
getUpper()
Get the upper bound of the interval. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final double lower
private final double upper
Constructor Detail |
---|
public Interval(double lower, double upper)
lower
- lower bound of the intervalupper
- upper bound of the intervalMethod Detail |
---|
public double getLower()
public double getUpper()
public double getLength()
public double getMidPoint()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |