[HepData-svn] r1427 - trunk/hepdata-model/src/main/java/cedar/hepdata/model

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Jan 13 09:54:21 GMT 2011


Author: whalley
Date: Thu Jan 13 09:54:20 2011
New Revision: 1427

Log:
needed for upside down + sign

Modified:
   trunk/hepdata-model/src/main/java/cedar/hepdata/model/Uncertainty.java

Modified: trunk/hepdata-model/src/main/java/cedar/hepdata/model/Uncertainty.java
==============================================================================
--- trunk/hepdata-model/src/main/java/cedar/hepdata/model/Uncertainty.java	Thu Jan 13 09:50:45 2011	(r1426)
+++ trunk/hepdata-model/src/main/java/cedar/hepdata/model/Uncertainty.java	Thu Jan 13 09:54:20 2011	(r1427)
@@ -81,6 +81,13 @@
     public boolean isSymmetric() {
         return (getPlus().equals(getMinus()));
     }
+    /** Are the plus and minus errors symmetric? */
+    public boolean isSymmetricReversed() {
+        Double plus = getPlus();
+        Double minus = getMinus();
+        plus = -plus;
+        return (plus.equals(minus));
+    }
 
 
     /** Are the plus and minus errors both zero? */


More information about the HepData-svn mailing list