hps-java/src/main/java/org/lcsim/hps/conditions/svt
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;
+ }
}