~ubuntu-branches/ubuntu/oneiric/weka/oneiric

« back to all changes in this revision

Viewing changes to weka/experiment/Stats.java

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner, Soeren Sonnenburg, Torsten Werner
  • Date: 2008-08-10 21:27:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080810212705-tr8etpnkdx2ziktp
Tags: 3.5.8-1
[ Soeren Sonnenburg ]
* Bump Standards Version to 3.8.0.
* Remove references to non-free Java in debian/copyright.

[ Torsten Werner ]
* new upstream release
* Switch to openjdk-6.
* Move package to main.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
package weka.experiment;
24
24
 
 
25
import weka.core.RevisionHandler;
 
26
import weka.core.RevisionUtils;
25
27
import weka.core.Utils;
26
28
 
27
29
import java.io.Serializable;
30
32
 * A class to store simple statistics
31
33
 *
32
34
 * @author Len Trigg (trigg@cs.waikato.ac.nz)
33
 
 * @version $Revision: 1.11 $
 
35
 * @version $Revision: 1.12 $
34
36
 */
35
37
public class Stats
36
 
  implements Serializable {
 
38
  implements Serializable, RevisionHandler {
37
39
 
38
40
  /** for serialization */
39
41
  private static final long serialVersionUID = -8610544539090024102L;
153
155
      + "Mean    " + Utils.doubleToString(mean, 8) + '\n'
154
156
      + "StdDev  " + Utils.doubleToString(stdDev, 8) + '\n';
155
157
  }
 
158
  
 
159
  /**
 
160
   * Returns the revision string.
 
161
   * 
 
162
   * @return            the revision
 
163
   */
 
164
  public String getRevision() {
 
165
    return RevisionUtils.extract("$Revision: 1.12 $");
 
166
  }
156
167
 
157
168
  /**
158
169
   * Tests the paired stats object from the command line.