org.freehep.util
Class DoubleWithError
- java.lang.Object
-
- org.freehep.util.DoubleWithError
-
public class DoubleWithError extends java.lang.ObjectA class that encapsulates a value and its error. Primarily for use with ScientificFormat- See Also:
ScientificFormat
-
-
Constructor Summary
Constructors Constructor and Description DoubleWithError(double value, double error)DoubleWithError(double value, double plusError, double minError)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetError()doublegetMinError()doublegetPlusError()doublegetValue()booleanhasAsymmetricError()voidsetError(double error)voidsetError(double plusError, double minError)voidsetValue(double value)java.lang.StringtoString()
-
-
-
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 java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG