|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.data.DataCell
org.knime.core.data.def.IntervalCell
public final class IntervalCell
A DataCell
implementation holding a numeric interval as value
by storing left and right bound.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.knime.core.data.FuzzyIntervalValue |
---|
FuzzyIntervalValue.FuzzyIntervalUtilityFactory |
Nested classes/interfaces inherited from interface org.knime.core.data.IntervalValue |
---|
IntervalValue.IntervalUtilityFactory |
Nested classes/interfaces inherited from interface org.knime.core.data.DataValue |
---|
DataValue.UtilityFactory |
Field Summary | |
---|---|
static DataType |
TYPE
Convenience access member for DataType.getType(IntervalCell.class) . |
Fields inherited from interface org.knime.core.data.FuzzyIntervalValue |
---|
UTILITY |
Fields inherited from interface org.knime.core.data.IntervalValue |
---|
UTILITY |
Constructor Summary | |
---|---|
IntervalCell(double left,
double right)
Creates a new interval cell based on the minimum and maximum value, while both bounds are included. |
|
IntervalCell(double left,
double right,
boolean includeLeft,
boolean includeRight)
Creates a new interval cell based on the minimum and maximum value. |
Method Summary | |
---|---|
int |
compare(double value)
Determines if the given double value is contained in this interval, to the left or to the right. |
int |
compare(DoubleValue value)
Determines if the given double value is contained in this interval, to the left or to the right. |
protected boolean |
equalsDataCell(DataCell dc)
Checks if this and the given cell have equal values. |
static org.knime.core.data.def.IntervalCell.IntervalSerializer |
getCellSerializer()
Returns the factory to read/write DataCells of this class from/to a DataInput/DataOutput. |
double |
getCenterOfGravity()
Returns the mean of minimum and maximum border. |
double |
getLeftBound()
|
double |
getMaxCore()
|
double |
getMaxSupport()
|
double |
getMinCore()
|
double |
getMinSupport()
|
static Class<? extends DataValue> |
getPreferredValueClass()
Returns the preferred value class of this cell implementation. |
double |
getRightBound()
|
int |
hashCode()
Computes hash code based on all private members. |
boolean |
includes(IntervalValue value)
Determines if the given IntervalValue is contained in this
interval. |
boolean |
leftBoundIncluded()
|
boolean |
rightBoundIncluded()
|
String |
toString()
Return a string summary of this object. |
Methods inherited from class org.knime.core.data.DataCell |
---|
equals, getType, isMissing |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final DataType TYPE
DataType.getType(IntervalCell.class)
.
DataType.getType(Class)
Constructor Detail |
---|
public IntervalCell(double left, double right, boolean includeLeft, boolean includeRight)
left
- boundright
- boundincludeLeft
- whether the left bound is includedincludeRight
- whether the right bound is included
IllegalArgumentException
- if min
>
max
public IntervalCell(double left, double right)
left
- boundright
- bound
IllegalArgumentException
- if min
>
max
Method Detail |
---|
public static final Class<? extends DataValue> getPreferredValueClass()
public static final org.knime.core.data.def.IntervalCell.IntervalSerializer getCellSerializer()
public double getMinSupport()
getMinSupport
in interface FuzzyIntervalValue
public double getMinCore()
getMinCore
in interface FuzzyIntervalValue
public double getMaxCore()
getMaxCore
in interface FuzzyIntervalValue
public double getMaxSupport()
getMaxSupport
in interface FuzzyIntervalValue
public double getCenterOfGravity()
getCenterOfGravity
in interface FuzzyIntervalValue
protected boolean equalsDataCell(DataCell dc)
equalsDataCell
in class DataCell
dc
- the other IntervalCell
to check values
#equalsDataCell(org.knime.core.data.DataCell)
public int hashCode()
DataCell
objects return the same hash code.
hashCode
in class DataCell
DataCell
Object.hashCode()
,
DataCell.equals(java.lang.Object)
public String toString()
toString
in class DataCell
[left,right]
stringObject.toString()
public double getRightBound()
getRightBound
in interface IntervalValue
public double getLeftBound()
getLeftBound
in interface IntervalValue
public int compare(double value)
compare
in interface IntervalValue
value
- the value to check
public int compare(DoubleValue value)
compare
in interface IntervalValue
value
- the value to check
public boolean includes(IntervalValue value)
IntervalValue
is contained in this
interval.
includes
in interface IntervalValue
value
- the interval to check
public boolean leftBoundIncluded()
leftBoundIncluded
in interface IntervalValue
public boolean rightBoundIncluded()
rightBoundIncluded
in interface IntervalValue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |