Dropped (unimplemented) load / saveDistribution methods.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141295 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
336444a759
commit
e668ff96b0
|
@ -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.19 $ $Date: 2004/06/14 23:34:46 $
|
||||
* @version $Revision: 1.20 $ $Date: 2004/06/14 23:45:33 $
|
||||
*/
|
||||
public interface EmpiricalDistribution {
|
||||
|
||||
|
@ -87,23 +87,6 @@ public interface EmpiricalDistribution {
|
|||
*/
|
||||
SummaryStatistics getSampleStats() throws IllegalStateException;
|
||||
|
||||
/**
|
||||
* Loads a saved distribution from a file.
|
||||
* @param file File reference for a file containing a digested distribution
|
||||
* @throws IOException if an error occurs reading the file
|
||||
*/
|
||||
void loadDistribution(File file) 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 file File reference 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(File file) throws IOException,IllegalStateException;
|
||||
|
||||
/**
|
||||
* property indicating whether or not the distribution has been loaded
|
||||
* @return true if the distribution has been loaded
|
||||
|
|
|
@ -53,7 +53,7 @@ import org.apache.commons.math.stat.univariate.SummaryStatistics;
|
|||
* entry per line.</li>
|
||||
* </ul></p>
|
||||
*
|
||||
* @version $Revision: 1.22 $ $Date: 2004/06/14 23:34:46 $
|
||||
* @version $Revision: 1.23 $ $Date: 2004/06/14 23:45:33 $
|
||||
*/
|
||||
public class EmpiricalDistributionImpl implements Serializable, EmpiricalDistribution {
|
||||
|
||||
|
@ -351,15 +351,6 @@ public class EmpiricalDistributionImpl implements Serializable, EmpiricalDistrib
|
|||
throw new RuntimeException("No bin selected");
|
||||
}
|
||||
|
||||
public void loadDistribution(File file) throws IOException {
|
||||
throw new UnsupportedOperationException("Not Implemented yet :-(");
|
||||
}
|
||||
|
||||
public void saveDistribution(File file) throws
|
||||
IOException,IllegalStateException {
|
||||
throw new UnsupportedOperationException("Not Implemented yet :-(");
|
||||
}
|
||||
|
||||
public SummaryStatistics getSampleStats() {
|
||||
return sampleStats;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue