Class BaseInterval
java.lang.Object
org.apache.commons.statistics.interval.BaseInterval
- All Implemented Interfaces:
Interval
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the lower bound of the interval.doubleGet the upper bound of the interval.
-
Field Details
-
lower
private final double lowerLower bound. -
upper
private final double upperUpper bound.
-
-
Constructor Details
-
BaseInterval
BaseInterval(double lower, double upper) Create an instance.- Parameters:
lower- Lower bound.upper- Upper bound.
-
-
Method Details
-
getLowerBound
public double getLowerBound()Description copied from interface:IntervalGet the lower bound of the interval.- Specified by:
getLowerBoundin interfaceInterval- Returns:
- the lower end point of the interval
-
getUpperBound
public double getUpperBound()Description copied from interface:IntervalGet the upper bound of the interval.- Specified by:
getUpperBoundin interfaceInterval- Returns:
- the upper end point of the interval
-