|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.preproc.discretization.caim2.Interval
public class Interval
Represents a double interval.
| Constructor Summary | |
|---|---|
Interval(Config content)
Creates an interval from its boundaries and whether the boundaries belong to the interval or not. |
|
Interval(double leftBound,
double rightBound,
boolean includeLeft,
boolean includeRight)
Creates an interval from its boundaries and whether the boundaries belong to the interval or not. |
|
| Method Summary | |
|---|---|
int |
compareLeftBoundToLeft(Interval intervalToCompare)
Compares the left bound of this interval to the left bound of the given interval. |
int |
compareLeftBoundToRight(Interval intervalToCompare)
Compares the left bound of this interval to the right bound of the given interval. |
int |
compareRightBoundToLeft(Interval intervalToCompare)
Compares the right bound of this interval to the left bound of the given interval. |
int |
compareRightBoundToRight(Interval intervalToCompare)
Compares the right bound of this interval to the right bound of the given interval. |
boolean |
contains(double value)
Checks if the given value is located within this interval or not. |
double |
getLeftBound()
|
double |
getRightBound()
|
boolean |
isIncludeLeft()
|
boolean |
isIncludeRight()
|
void |
saveToModelContent(Config modelContent)
Saves this interval to a ModelContentWO
object. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Interval(double leftBound,
double rightBound,
boolean includeLeft,
boolean includeRight)
leftBound - the left bound of the intervalrightBound - the right bound of the intervalincludeLeft - whether the left bound is included in the intervalincludeRight - whether the right bound is included in the interval
public Interval(Config content)
throws InvalidSettingsException
content - the Config object to create this interval from
InvalidSettingsException - thrown if the settings to restore are
invalid| Method Detail |
|---|
public boolean isIncludeLeft()
public boolean isIncludeRight()
public double getLeftBound()
public double getRightBound()
public int compareLeftBoundToLeft(Interval intervalToCompare)
intervalToCompare - the interval to compare to this interval
public int compareRightBoundToRight(Interval intervalToCompare)
intervalToCompare - the interval to compare to this interval
public int compareRightBoundToLeft(Interval intervalToCompare)
intervalToCompare - the interval to compare to this interval
public int compareLeftBoundToRight(Interval intervalToCompare)
intervalToCompare - the interval to compare to this interval
public String toString()
toString in class Objectpublic boolean contains(double value)
value - the value to check
public void saveToModelContent(Config modelContent)
ModelContentWO
object.
modelContent - the Config object to store the
Interval to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||