jas.util
Class DoubleWithError

java.lang.Object
  extended by jas.util.DoubleWithError

public class DoubleWithError
extends Object

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

See Also:
ScientificFormat

Field Summary
static String plusorminus
           
 
Constructor Summary
DoubleWithError(double value, double error)
           
 
Method Summary
 double getError()
           
 double getValue()
           
 void setError(double error)
           
 void setValue(double value)
           
 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 String plusorminus
See Also:
Constant Field Values
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 String toString()
Overrides:
toString in class Object


Copyright © 2000-2009 FreeHEP. All Rights Reserved.