jas.util
Class DoubleWithError

java.lang.Object
  |
  +--jas.util.DoubleWithError

public class DoubleWithError
extends java.lang.Object

A class that encapsulates a value and its error. Primarily for use with ScientificFormat

See Also:
ScientificFormat

Field Summary
static java.lang.String plusorminus
           
 
Constructor Summary
DoubleWithError(double value, double error)
           
 
Method Summary
 double getError()
           
 double getValue()
           
 void setError(double error)
           
 void setValue(double value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

plusorminus

public static final java.lang.String plusorminus
Constructor Detail

DoubleWithError

public DoubleWithError(double value,
                       double error)
Method Detail

setError

public void setError(double error)

getError

public double getError()

setValue

public void setValue(double value)

getValue

public double getValue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object