public class DataTypeVariableBitSignedFloat extends AbstractContextual implements DataType<PreciseFixedFloatType>
DataType definition for variable bit floats.| Constructor and Description |
|---|
DataTypeVariableBitSignedFloat() |
| Modifier and Type | Method and Description |
|---|---|
double |
asDouble(PreciseFixedFloatType val)
Converts value to a double.
|
long |
asLong(PreciseFixedFloatType val)
Converts value to a long.
|
int |
bitCount()
Number of bits of information required to represent data in the type.
|
void |
cast(BigComplex val,
PreciseFixedFloatType dest)
Sets a given variable of the underlying NumericType to a value that is
closest to a given BigComplex number.
|
void |
cast(PreciseFixedFloatType val,
BigComplex dest)
Sets a BigComplex representation from a given variable of the underlying
NumericType.
|
PreciseFixedFloatType |
createVariable()
Returns a variable of the underlying NumericType wrapped by this DataType.
|
String |
description()
A fuller description that elaborates on the capabilities of the type.
|
PreciseFixedFloatType |
getType()
Provides an example of the underlying NumericType.
|
boolean |
hasDoubleRepresentation()
Returns true if data can be encoded in a double with no precision loss.
|
boolean |
hasLongRepresentation()
Returns true if data can be encoded in a long with no precision loss.
|
boolean |
isBounded()
Returns true if DataType is fully bounded (bounded below and bounded
above).
|
boolean |
isComplex()
Returns true if this DataType is a complex number (imaginary component is
changeable).
|
boolean |
isFloat()
Returns true if this DataType represents a floating point number.
|
boolean |
isSigned()
Returns true if this DataType represents a signed number.
|
String |
longName()
A long name useful for displaying to user.
|
void |
lowerBound(PreciseFixedFloatType dest)
Sets a given variable to the lower bound of the underlying NumericType.
|
void |
setDouble(PreciseFixedFloatType val,
double v)
Sets a given value to a given double.
|
void |
setLong(PreciseFixedFloatType val,
long v)
Sets a given value to a given long.
|
String |
shortName()
A short name useful for displaying to user.
|
void |
upperBound(PreciseFixedFloatType dest)
Sets a given variable to the upper bound of the underlying NumericType.
|
context, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontext, getContext, setContextpublic PreciseFixedFloatType getType()
DataTypegetType in interface DataType<PreciseFixedFloatType>public String shortName()
DataTypeshortName in interface DataType<PreciseFixedFloatType>public String longName()
DataTypelongName in interface DataType<PreciseFixedFloatType>public String description()
DataTypedescription in interface DataType<PreciseFixedFloatType>public boolean isComplex()
DataTypeisComplex in interface DataType<PreciseFixedFloatType>public boolean isFloat()
DataTypeisFloat in interface DataType<PreciseFixedFloatType>public boolean isSigned()
DataTypeisSigned in interface DataType<PreciseFixedFloatType>public boolean isBounded()
DataTypeisBounded in interface DataType<PreciseFixedFloatType>public void lowerBound(PreciseFixedFloatType dest)
DataTypelowerBound in interface DataType<PreciseFixedFloatType>public void upperBound(PreciseFixedFloatType dest)
DataTypeupperBound in interface DataType<PreciseFixedFloatType>public int bitCount()
DataTypebitCount in interface DataType<PreciseFixedFloatType>public PreciseFixedFloatType createVariable()
DataTypecreateVariable in interface DataType<PreciseFixedFloatType>public void cast(PreciseFixedFloatType val, BigComplex dest)
DataTypecast in interface DataType<PreciseFixedFloatType>public void cast(BigComplex val, PreciseFixedFloatType dest)
DataTypecast in interface DataType<PreciseFixedFloatType>public boolean hasDoubleRepresentation()
DataTypehasDoubleRepresentation in interface DataType<PreciseFixedFloatType>public boolean hasLongRepresentation()
DataTypehasLongRepresentation in interface DataType<PreciseFixedFloatType>public double asDouble(PreciseFixedFloatType val)
DataTypeasDouble in interface DataType<PreciseFixedFloatType>public long asLong(PreciseFixedFloatType val)
DataTypeasLong in interface DataType<PreciseFixedFloatType>public void setDouble(PreciseFixedFloatType val, double v)
DataTypesetDouble in interface DataType<PreciseFixedFloatType>public void setLong(PreciseFixedFloatType val, long v)
DataTypesetLong in interface DataType<PreciseFixedFloatType>Copyright © 2014–2022 ImageJ. All rights reserved.