public class Interval extends Object
IntervalsSet
Constructor and Description |
---|
Interval(double lower,
double upper)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public Interval(double lower, double upper)
lower
- lower bound of the intervalupper
- upper bound of the intervalpublic double getLower()
public double getUpper()
public double getLength()
public double getMidPoint()
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.