Modifier and Type | Field and Description |
---|---|
double |
max
It specifies the maximal value in the interval.
|
double |
min
It specifies the minimal value in the interval.
|
Constructor and Description |
---|
FloatInterval()
It creates the largest possible interval.
|
FloatInterval(double min,
double max)
It creates an interval with a given minimum and maximal value.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
eq(FloatInterval interval)
It checks equality between intervals.
|
double |
max()
It returns the right bound of the interval (maximum value).
|
double |
min()
It returns the left range of the interval (minimum value).
|
boolean |
singleton()
It checks if an intervals contains only one value (singleton).
|
boolean |
singleton(double c)
It checks if an intervals contains only value c.
|
String |
toString() |
public final double min
public final double max
public FloatInterval()
public FloatInterval(double min, double max)
min
- the minimal value in the interval (the left bound).max
- the maximal value in the interval (the right bound).public boolean eq(FloatInterval interval)
interval
- the inerval to which the comparison is made.public double max()
public double min()
public boolean singleton()
public boolean singleton(double c)
c
- integer value to which the singleton is compared to.Copyright © 2022. All rights reserved.