Class DoubleBounds

    • Field Detail

      • lower

        protected final double[] lower
      • upper

        protected final double[] upper
    • Constructor Detail

      • DoubleBounds

        public DoubleBounds​(double[] lower,
                            double[] upper)
        Constructs a DoubleBounds with arrays.
        Parameters:
        lower - the lower bounds
        upper - the upper bounds
      • DoubleBounds

        public DoubleBounds​(List<Double> lower,
                            List<Double> upper)
        Constructs a DoubleBounds with lists.
        Parameters:
        lower - the lower bounds
        upper - the upper bounds
    • Method Detail

      • getLowerBound

        public Double getLowerBound​(int index)
        Description copied from interface: Bounds
        Returns the lower bound for the i-th element.
        Specified by:
        getLowerBound in interface Bounds<Double>
        Parameters:
        index - the i-th element
        Returns:
        the lower bound of the i-th element
      • getUpperBound

        public Double getUpperBound​(int index)
        Description copied from interface: Bounds
        Returns the upper bound for the i-th element.
        Specified by:
        getUpperBound in interface Bounds<Double>
        Parameters:
        index - the i-th element
        Returns:
        the upper bound of the i-th element