psteitz     2004/06/14 16:45:33

  Modified:    math/src/java/org/apache/commons/math/random
                        EmpiricalDistribution.java
                        EmpiricalDistributionImpl.java
  Log:
  Dropped (unimplemented) load / saveDistribution methods.
  
  Revision  Changes    Path
  1.20      +1 -18     
jakarta-commons/math/src/java/org/apache/commons/math/random/EmpiricalDistribution.java
  
  Index: EmpiricalDistribution.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/random/EmpiricalDistribution.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- EmpiricalDistribution.java        14 Jun 2004 23:34:46 -0000      1.19
  +++ EmpiricalDistribution.java        14 Jun 2004 23:45:33 -0000      1.20
  @@ -88,23 +88,6 @@
       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
        */
  
  
  
  1.23      +1 -10     
jakarta-commons/math/src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java
  
  Index: EmpiricalDistributionImpl.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- EmpiricalDistributionImpl.java    14 Jun 2004 23:34:46 -0000      1.22
  +++ EmpiricalDistributionImpl.java    14 Jun 2004 23:45:33 -0000      1.23
  @@ -351,15 +351,6 @@
           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;
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to