Print

Print


Commit in hps-java/src/main/java/org/lcsim/hps/conditions/svt on MAIN
PulseParameters.java+141.1 -> 1.2
add toArray method

hps-java/src/main/java/org/lcsim/hps/conditions/svt
PulseParameters.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- PulseParameters.java	4 Oct 2013 01:43:48 -0000	1.1
+++ PulseParameters.java	11 Oct 2013 01:01:29 -0000	1.2
@@ -59,8 +59,22 @@
     
     /**
      * Convert this object to a human readable string.
+     * @return This object converted to a string.
      */
     public String toString() {
         return "amp: " + amplitude + ", t0: " + t0 + ", shift: " + tp + ", chisq: " + chisq;
     }
+    
+    /**
+     * Convert this object to an array of doubles.
+     * @return This object converted to an array of doubles.
+     */
+    public double[] toArray() {
+        double[] values = new double[4];
+        values[0] = amplitude;
+        values[1] = t0;
+        values[2] = tp;
+        values[3] = chisq;
+        return values;
+    }
 }
CVSspam 0.2.12


Use REPLY-ALL to reply to list

To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1