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
This commit is contained in:
parent
a6b433d257
commit
336444a759
|
@ -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.
|
||||
* <strong>Preconditions:</strong><ul>
|
||||
* <li>the distribution must be loaded before invoking this method</li></ul>
|
||||
* @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.
|
||||
* <strong>Preconditions:</strong><ul>
|
||||
|
|
|
@ -53,7 +53,7 @@ import org.apache.commons.math.stat.univariate.SummaryStatistics;
|
|||
* entry per line.</li>
|
||||
* </ul></p>
|
||||
*
|
||||
* @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 :-(");
|
||||
|
|
Loading…
Reference in New Issue