Class BaseInterval

java.lang.Object
org.apache.commons.statistics.interval.BaseInterval
All Implemented Interfaces:
Interval

final class BaseInterval extends Object implements Interval
Base class representing an Interval.
Since:
1.2
  • Field Details

    • lower

      private final double lower
      Lower bound.
    • upper

      private final double upper
      Upper 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: Interval
      Get the lower bound of the interval.
      Specified by:
      getLowerBound in interface Interval
      Returns:
      the lower end point of the interval
    • getUpperBound

      public double getUpperBound()
      Description copied from interface: Interval
      Get the upper bound of the interval.
      Specified by:
      getUpperBound in interface Interval
      Returns:
      the upper end point of the interval