From 336444a759fd6bcdf53a91a659874fbcfae2e91d Mon Sep 17 00:00:00 2001 From: Phil Steitz Date: Mon, 14 Jun 2004 23:34:46 +0000 Subject: [PATCH] Dropped load / save methods taking string file paths as arguments. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141294 13f79535-47bb-0310-9956-ffa450edef68 --- .../math/random/EmpiricalDistribution.java | 28 +------------------ .../random/EmpiricalDistributionImpl.java | 11 +------- 2 files changed, 2 insertions(+), 37 deletions(-) diff --git a/src/java/org/apache/commons/math/random/EmpiricalDistribution.java b/src/java/org/apache/commons/math/random/EmpiricalDistribution.java index 938a5b91c..ccec3a27b 100644 --- a/src/java/org/apache/commons/math/random/EmpiricalDistribution.java +++ b/src/java/org/apache/commons/math/random/EmpiricalDistribution.java @@ -43,7 +43,7 @@ import org.apache.commons.math.stat.univariate.SummaryStatistics; * build grouped frequnecy histograms representing the input data or to * generate random values "like" those in the input file -- i.e., the values * generated will follow the distribution of the values in the file. - * @version $Revision: 1.18 $ $Date: 2004/06/14 23:15:14 $ + * @version $Revision: 1.19 $ $Date: 2004/06/14 23:34:46 $ */ public interface EmpiricalDistribution { @@ -54,13 +54,6 @@ public interface EmpiricalDistribution { */ void load(double[] dataArray); - /** - * Computes the empirical distribution from the input file. - * @param filePath fully qualified name of a file in the local file system - * @throws IOException if an IO error occurs - */ - void load(String filePath) throws IOException; - /** * Computes the empirical distribution from the input file. * @param file the input file @@ -101,25 +94,6 @@ public interface EmpiricalDistribution { */ void loadDistribution(File file) throws IOException; - /** - * Loads a saved distribution from a file. - * @param filePath fully qualified file path for a file - * containing a digested distribution - * @throws IOException if an error occurs reading the file - */ - void loadDistribution(String filePath) throws IOException; - - /** - * Saves distribution to a file. Overwrites the file if it exists. - * Preconditions: - * @param filePath fully qualified file path for the file to be written - * @throws IOException if an error occurs reading the file - * @throws IllegalStateException if the distribution has not been loaded - */ - void saveDistribution(String filePath) throws - IOException,IllegalStateException; - /** * Saves distribution to a file. Overwrites the file if it exists. * Preconditions:

* - * @version $Revision: 1.21 $ $Date: 2004/06/14 23:15:14 $ + * @version $Revision: 1.22 $ $Date: 2004/06/14 23:34:46 $ */ public class EmpiricalDistributionImpl implements Serializable, EmpiricalDistribution { @@ -351,19 +351,10 @@ public class EmpiricalDistributionImpl implements Serializable, EmpiricalDistrib throw new RuntimeException("No bin selected"); } - public void loadDistribution(String filePath) throws IOException { - throw new UnsupportedOperationException("Not Implemented yet :-("); - } - public void loadDistribution(File file) throws IOException { throw new UnsupportedOperationException("Not Implemented yet :-("); } - public void saveDistribution(String filePath) throws - IOException,IllegalStateException { - throw new UnsupportedOperationException("Not Implemented yet :-("); - } - public void saveDistribution(File file) throws IOException,IllegalStateException { throw new UnsupportedOperationException("Not Implemented yet :-(");