Class Interval
java.lang.Object
org.ampere.base.util.Interval
-
Constructor Details
-
Interval
public Interval(double min, double max) Creates a new instance of Interval- Parameters:
min- minimal valuemax- maximal value
-
-
Method Details
-
getMinimum
public double getMinimum()- Returns:
- the minimum of the interval
-
getMaximum
public double getMaximum()- Returns:
- the maximum of the interval
-
getSize
public double getSize() -
isVoid
public boolean isVoid()- Returns:
- true if the Interval is void.
-
include
public boolean include(double x) - Parameters:
x- input value- Returns:
- true if the interval includes the input value
-
intersection
-
union
-
diameter
public double diameter() -
toString
-