Commit in lcsim/src/org/lcsim/contrib/uiowa/structural/likelihood on MAIN
LikelihoodEvaluator.java+11-11.1 -> 1.2
Added ability to write out

lcsim/src/org/lcsim/contrib/uiowa/structural/likelihood
LikelihoodEvaluator.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- LikelihoodEvaluator.java	29 Sep 2005 21:04:50 -0000	1.1
+++ LikelihoodEvaluator.java	14 Oct 2005 17:44:49 -0000	1.2
@@ -125,5 +125,15 @@
         }
     }
 
-
+    public void writeToFile(String filename)
+    {
+        // Open the file for writing:
+        try {
+            FileOutputStream fos = new FileOutputStream(filename);
+            ObjectOutputStream oos = new ObjectOutputStream(fos);
+            oos.writeObject(this);
+        } catch (java.io.IOException x) {
+            throw new AssertionError("java.io.IOException: "+x);
+        }
+    }
 }
CVSspam 0.2.8