Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0
-
None
-
None
Description
The Interval and IntervalSet in the org.apache.commons.math3.geometry.euclidean.oned package share some features but use different names. IntervalsSet inherit some names from its top level interface (Region) which is independent from dimension and are also consisten with sets composed of disjoint intervals or are infinite. Interval only has names which are meaningful for one dimension, finite intervals.
For consistency, the specific names provided by Interval API should be replaced by the more generic names provided by the IntervalsSet and Region API. The changes are:
- getLower -> getInf
- getUpper -> getSup
- getLength -> getSize
- getMidPoint -> getBarycenter