|
||||||||||
| 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.FuzzyNumberCell
public final class FuzzyNumberCell
A data cell implementation holding a Fuzzy number by storing this value in
three private double members, that is one for the core and two
for the min/max of the support. It also provides a fuzzy interval value.
The height of the membership value at the core value is assumed to be 1.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.knime.core.data.FuzzyNumberValue |
|---|
FuzzyNumberValue.FuzzyNumberUtilityFactory |
| Nested classes/interfaces inherited from interface org.knime.core.data.FuzzyIntervalValue |
|---|
FuzzyIntervalValue.FuzzyIntervalUtilityFactory |
| Nested classes/interfaces inherited from interface org.knime.core.data.DataValue |
|---|
DataValue.UtilityFactory |
| Field Summary | |
|---|---|
static DataType |
TYPE
Convenience access member for DataType.getType(FuzzyNumberCell.class). |
| Fields inherited from interface org.knime.core.data.FuzzyNumberValue |
|---|
UTILITY |
| Fields inherited from interface org.knime.core.data.FuzzyIntervalValue |
|---|
UTILITY |
| Constructor Summary | |
|---|---|
FuzzyNumberCell(double minSupp,
double core,
double maxSupp)
Creates a new fuzzy number cell based on min, max support, and core. |
|
| Method Summary | |
|---|---|
protected boolean |
equalsDataCell(DataCell dc)
Derived classes implement their specific equals function here. |
static org.knime.core.data.def.FuzzyNumberCell.FuzzyNumberSerializer |
getCellSerializer()
Returns the factory to read/write DataCells of this class from/to a DataInput/DataOutput. |
double |
getCenterOfGravity()
|
double |
getCore()
|
double |
getMaxCore()
|
double |
getMaxSupport()
|
double |
getMinCore()
|
double |
getMinSupport()
|
static Class<? extends DataValue> |
getPreferredValueClass()
Returns the preferred value class of this cell implementation. |
int |
hashCode()
This method must be implemented in order to ensure that two equal DataCell objects return the same hash code. |
String |
toString()
Returns the String representation of this cell's value. |
| 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(FuzzyNumberCell.class).
DataType.getType(Class)| Constructor Detail |
|---|
public FuzzyNumberCell(double minSupp,
double core,
double maxSupp)
minSupp - Minimum support value.core - Core value.maxSupp - Maximum support value.
IllegalArgumentException - If not
minSupp <= core <= maxSupp.| Method Detail |
|---|
public static final org.knime.core.data.def.FuzzyNumberCell.FuzzyNumberSerializer getCellSerializer()
DataCellpublic static final Class<? extends DataValue> getPreferredValueClass()
public double getMinSupport()
getMinSupport in interface FuzzyIntervalValuegetMinSupport in interface FuzzyNumberValuepublic double getCore()
getCore in interface FuzzyNumberValuepublic double getMaxSupport()
getMaxSupport in interface FuzzyIntervalValuegetMaxSupport in interface FuzzyNumberValuepublic double getMinCore()
getMinCore in interface FuzzyIntervalValue#getCore()public double getMaxCore()
getMaxCore in interface FuzzyIntervalValue#getCore()public double getCenterOfGravity()
getCenterOfGravity in interface FuzzyIntervalValueprotected boolean equalsDataCell(DataCell dc)
null or a missing value,
to be of the same class like this.
equalsDataCell in class DataCelldc - the cell to compare this to
true if this is equal to the argument,
false if notpublic int hashCode()
DataCell objects return the same hash code.
hashCode in class DataCellDataCellObject.hashCode(),
DataCell.equals(java.lang.Object)public String toString()
toString in class DataCell
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||