|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RealIface
Interface to scalar data for real numbers represented as double precision floating point values. Double.NaN is used to indicate missing values, because it has the appropriate arithmetic semantics.
Field Summary |
---|
Fields inherited from interface visad.Data |
---|
ABS, ACOS, ACOS_DEGREES, ADD, ASIN, ASIN_DEGREES, ATAN, ATAN_DEGREES, ATAN2, ATAN2_DEGREES, CEIL, COS, COS_DEGREES, DEGREES_TO_RADIANS, DEPENDENT, DIVIDE, EXP, FLOOR, INDEPENDENT, INV_ATAN2, INV_ATAN2_DEGREES, INV_DIVIDE, INV_POW, INV_REMAINDER, INV_SUBTRACT, LOG, MAX, MIN, MULTIPLY, NEAREST_NEIGHBOR, NEGATE, NO_ERRORS, NOP, POW, RADIANS_TO_DEGREES, REMAINDER, RINT, ROUND, SIN, SIN_DEGREES, SQRT, SUBTRACT, TAN, TAN_DEGREES, WEIGHTED_AVERAGE |
Method Summary | |
---|---|
Data |
adjustSamplingError(Data error,
int error_mode)
Returns a clone, except that the ErrorEstimate of the clone is adjusted for a given error mode and uncertainty. |
Real |
cloneButUnit(Unit u)
Returns a clone of this instance but with a new Unit. |
Real |
cloneButValue(double value)
Returns a clone of this instance with a different numeric value. |
int |
compareTo(Object object)
Compares this Real to another. |
ErrorEstimate |
getError()
Returns the uncertainty in the numeric value of this instance. |
Unit |
getUnit()
Returns the unit of this instance. |
double |
getValue()
Returns the numeric value in the unit of getUnit() . |
double |
getValue(Unit unit_out)
Returns the numeric value in a particular unit. |
int |
hashCode()
Returns the hash code of this Real. |
String |
toString()
|
String |
toValueString()
Returns a string that represents just the value portion of this Real -- but with full semantics (e.g. numeric value and unit). |
Methods inherited from interface visad.ScalarIface |
---|
equals |
Methods inherited from interface visad.Data |
---|
abs, abs, acos, acos, acosDegrees, acosDegrees, add, add, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, binary, binary, ceil, ceil, changeMathType, computeRanges, computeRanges, computeRanges, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, getType, isMissing, local, log, log, longString, longString, max, max, min, min, multiply, multiply, negate, negate, pow, pow, remainder, remainder, rint, rint, round, round, sin, sin, sinDegrees, sinDegrees, sqrt, sqrt, subtract, subtract, tan, tan, tanDegrees, tanDegrees, unary, unary |
Methods inherited from interface visad.Thing |
---|
addReference, removeReference |
Method Detail |
---|
double getValue()
getUnit()
.
getUnit()
.double getValue(Unit unit_out) throws VisADException
unit_out
- The desired unit for the numeric value. Must be
convertible with getUnit()
.
VisADException
Unit getUnit()
ErrorEstimate getError()
Data adjustSamplingError(Data error, int error_mode) throws VisADException, RemoteException
adjustSamplingError
in interface Data
error
- The uncertainty by which to adjust the clone.error_mode
- The mode for propagating errors. See Data
.
VisADException
- VisAD failure.
RemoteException
- Java RMI failure.Real cloneButValue(double value) throws VisADException
value
- The numeric value for the clone.
VisADException
- VisAD failure.Real cloneButUnit(Unit u) throws VisADException
u
- The unit for the clone.
VisADException
String toString()
toString
in class Object
String toValueString()
int compareTo(Object object)
object
- The other Real to compare against. It shall be
a Real with a compatible (i.e. convertible)
unit.
ErrorEstimate.compareTo()
method is used
to break the tie.int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |