Class Interval


  • public class Interval
    extends Object
    This class represents a 1D interval.
    See Also:
    IntervalsSet
    • Constructor Detail

      • Interval

        public Interval​(double lower,
                        double upper)
        Simple constructor.
        Parameters:
        lower - lower bound of the interval
        upper - upper bound of the interval
    • Method Detail

      • getInf

        public double getInf()
        Get the lower bound of the interval.
        Returns:
        lower bound of the interval
      • getSup

        public double getSup()
        Get the upper bound of the interval.
        Returns:
        upper bound of the interval
      • getSize

        public double getSize()
        Get the size of the interval.
        Returns:
        size of the interval
      • getBarycenter

        public double getBarycenter()
        Get the barycenter of the interval.
        Returns:
        barycenter of the interval