public final class DoubleCell extends DataCell implements DoubleValue, ComplexNumberValue, FuzzyNumberValue, FuzzyIntervalValue, BoundedValue
double
member. It provides a double value and a fuzzy
number value, as well as a fuzzy interval value.Modifier and Type | Class and Description |
---|---|
static class |
DoubleCell.DoubleCellFactory
Factory for
DoubleCell s. |
static class |
DoubleCell.DoubleSerializer
Factory for (de-)serializing a
DoubleCell s. |
DoubleValue.DoubleUtilityFactory
ComplexNumberValue.ComplexNumberUtilityFactory
FuzzyNumberValue.FuzzyNumberUtilityFactory
FuzzyIntervalValue.FuzzyIntervalUtilityFactory
DataValue.UtilityFactory
Modifier and Type | Field and Description |
---|---|
static DataType |
TYPE
Convenience access member for
DataType.getType(DoubleCell.class) . |
UTILITY
UTILITY
UTILITY
UTILITY
Constructor and Description |
---|
DoubleCell(double d)
Creates a new cell for a generic double value.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
equalsDataCell(DataCell dc)
Derived classes implement their specific equals function here.
|
static DataCellSerializer<DoubleCell> |
getCellSerializer()
Deprecated.
use
DataTypeRegistry.getSerializer(Class) instead |
double |
getCenterOfGravity() |
double |
getCore() |
double |
getDoubleValue() |
double |
getImaginaryValue() |
double |
getMaxCore() |
double |
getMaxSupport() |
double |
getMinCore() |
double |
getMinSupport() |
double |
getRealValue() |
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.
|
equalContent, equals, getType, isMissing
public static final DataType TYPE
DataType.getType(DoubleCell.class)
.DataType.getType(Class)
public DoubleCell(double d)
d
- The double value.@Deprecated public static final DataCellSerializer<DoubleCell> getCellSerializer()
DataTypeRegistry.getSerializer(Class)
insteadDataCell
public double getDoubleValue()
getDoubleValue
in interface DoubleValue
double
value.public double getCore()
getCore
in interface FuzzyNumberValue
public double getMaxSupport()
getMaxSupport
in interface FuzzyIntervalValue
getMaxSupport
in interface FuzzyNumberValue
public double getMinSupport()
getMinSupport
in interface FuzzyIntervalValue
getMinSupport
in interface FuzzyNumberValue
public double getMaxCore()
getMaxCore
in interface FuzzyIntervalValue
public double getMinCore()
getMinCore
in interface FuzzyIntervalValue
public double getCenterOfGravity()
getCenterOfGravity
in interface FuzzyIntervalValue
public double getImaginaryValue()
getImaginaryValue
in interface ComplexNumberValue
public double getRealValue()
getRealValue
in interface ComplexNumberValue
protected boolean equalsDataCell(DataCell dc)
null
or a missing value,
to be of the same class like this.equalsDataCell
in class DataCell
dc
- the cell to compare this totrue
if this is equal to the argument,
false
if notpublic int hashCode()
DataCell
objects return the same hash code. Note that two cells can be equal according to
DataCell.equalsDataCell(DataCell)
and DataCell.equalContent(DataValue)
so two different cells implementations
with the same preferred value must have the same hash code.hashCode
in class DataCell
DataCell
Object.hashCode()
,
DataCell.equals(java.lang.Object)
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.