List of usage examples for org.apache.commons.lang.math DoubleRange DoubleRange
public DoubleRange(Number number1, Number number2)
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).
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); }