FreeHEP API
Version v1.2

org.freehep.util
Class DoubleWithError

java.lang.Object
  |
  +--org.freehep.util.DoubleWithError

public class DoubleWithError
extends Object

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

Version:
$Id: DoubleWithError.java,v 1.1 2000/11/01 13:51:48 duns Exp $
Author:
Tony Johnson, Mark Donszelmann
See Also:
ScientificFormat

Field Summary
static String minus
           
static String plus
           
static String plusorminus
           
 
Constructor Summary
DoubleWithError(double value, double error)
           
DoubleWithError(double value, double plusError, double minError)
           
 
Method Summary
 double getError()
           
 double getMinError()
           
 double getPlusError()
           
 double getValue()
           
 boolean hasAsymmetricError()
           
 void setError(double error)
           
 void setError(double plusError, double minError)
           
 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

plus

public static final String plus
See Also:
Constant Field Values

minus

public static final String minus
See Also:
Constant Field Values
Constructor Detail

DoubleWithError

public DoubleWithError(double value,
                       double error)

DoubleWithError

public DoubleWithError(double value,
                       double plusError,
                       double minError)
Method Detail

setError

public void setError(double error)

setError

public void setError(double plusError,
                     double minError)

getError

public double getError()

getPlusError

public double getPlusError()

getMinError

public double getMinError()

hasAsymmetricError

public boolean hasAsymmetricError()

setValue

public void setValue(double value)

getValue

public double getValue()

toString

public String toString()
Overrides:
toString in class Object

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.