diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/extreme/Curve.java @ 4259:5cc9453456a7

First complete but untested version of the 'Auslagerung extremer Wasserspiegellagen' calculation.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Oct 2012 17:25:37 +0200
parents 467efea19d15
children 2e8e00026059
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/extreme/Curve.java	Thu Oct 25 15:17:01 2012 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/extreme/Curve.java	Thu Oct 25 17:25:37 2012 +0200
@@ -25,6 +25,7 @@
     protected double [] ws;
     protected String    function;
     protected double [] coeffs;
+    protected double    chiSqr;
 
     // The spline is pretty heavy weight so cache it with a soft ref only.
     protected transient SoftReference<Function> spline;
@@ -37,7 +38,8 @@
         double [] qs,
         double [] ws,
         String    function,
-        double [] coeffs
+        double [] coeffs,
+        double    chiSqr
     ) {
         this.qs       = qs;
         this.ws       = ws;
@@ -81,6 +83,24 @@
         return extrapolation;
     }
 
+    /**
+     * Gets the chiSqr for this instance.
+     *
+     * @return The chiSqr.
+     */
+    public double getChiSqr() {
+        return this.chiSqr;
+    }
+
+    /**
+     * Sets the chiSqr for this instance.
+     *
+     * @param chiSqr The chiSqr.
+     */
+    public void setChiSqr(double chiSqr) {
+        this.chiSqr = chiSqr;
+    }
+
     protected synchronized Function getSpline() {
         Function sp;
         if (spline != null) {

http://dive4elements.wald.intevation.org