Example usage for org.apache.commons.lang.math DoubleRange DoubleRange

List of usage examples for org.apache.commons.lang.math DoubleRange DoubleRange

Introduction

In this page you can find the example usage for org.apache.commons.lang.math DoubleRange DoubleRange.

Prototype

public DoubleRange(Number number1, Number number2) 

Source Link

Document

Constructs a new DoubleRange with the specified minimum and maximum numbers (both inclusive).

The arguments may be passed in the order (min,max) or (max,min).

Usage

From source file:org.drugis.addis.util.BoundedInterval.java

public BoundedInterval(double lowerBound, boolean lowerBoundIsOpen, double upperBound,
        boolean upperBoundIsOpen) {
    this(new DoubleRange(lowerBound + (lowerBoundIsOpen ? BoundedInterval.EPSILON : 0),
            upperBound - (upperBoundIsOpen ? BoundedInterval.EPSILON : 0)), lowerBoundIsOpen, upperBoundIsOpen);
}