Class Interval1D
java.lang.Object
org.proforma.variability.util.algs4.Interval1D
- All Implemented Interfaces:
Comparable<Interval1D>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(Interval1D that) boolean
contains
(double x) boolean
intersects
(Interval1D that) toString()
-
Field Details
-
min
public final double min -
max
public final double max
-
-
Constructor Details
-
Interval1D
public Interval1D(double min, double max)
-
-
Method Details
-
intersects
-
contains
public boolean contains(double x) -
compareTo
- Specified by:
compareTo
in interfaceComparable<Interval1D>
-
toString
-