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.2 2004/06/19 23:26:35 tonyj Exp $
- Author:
- Tony Johnson, Mark Donszelmann
- See Also:
ScientificFormat
- Source Code:
- DoubleWithError.java
DoubleWithError
public DoubleWithError(double value,
double error)
DoubleWithError
public DoubleWithError(double value,
double plusError,
double minError)
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()
Copyright © 2000-2004 FreeHEP, All Rights Reserved.