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

« back to all changes in this revision

Viewing changes to weka/estimators/Estimator.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.estimators;
24
24
 
25
 
import weka.estimators.IncrementalEstimator;
26
 
import java.io.BufferedReader;
27
 
import java.io.FileReader;
28
 
import java.io.InputStreamReader;
29
 
import java.io.Reader;
30
 
import java.io.Serializable;
31
 
import java.util.Enumeration;
32
 
import java.util.Vector;
33
25
import weka.core.Capabilities;
34
 
import weka.core.Capabilities.Capability;
35
26
import weka.core.CapabilitiesHandler;
36
27
import weka.core.Instance;
37
28
import weka.core.Instances;
38
29
import weka.core.Option;
39
30
import weka.core.OptionHandler;
 
31
import weka.core.RevisionHandler;
 
32
import weka.core.RevisionUtils;
40
33
import weka.core.SerializedObject;
41
34
import weka.core.Utils;
 
35
import weka.core.Capabilities.Capability;
 
36
 
 
37
import java.io.BufferedReader;
 
38
import java.io.FileReader;
 
39
import java.io.InputStreamReader;
 
40
import java.io.Reader;
 
41
import java.io.Serializable;
 
42
import java.util.Enumeration;
 
43
import java.util.Vector;
42
44
 
43
45
/** 
44
46
 *
89
91
 *
90
92
 * @author Gabi Schmidberger (gabi@cs.waikato.ac.nz)
91
93
 * @author Len Trigg (trigg@cs.waikato.ac.nz)
92
 
 * @version $Revision: 1.9 $
 
94
 * @version $Revision: 1.10 $
93
95
 */
94
96
public abstract class Estimator 
95
 
  implements Cloneable, Serializable, OptionHandler, CapabilitiesHandler {
 
97
  implements Cloneable, Serializable, OptionHandler, CapabilitiesHandler, 
 
98
             RevisionHandler {
96
99
  
97
100
  /** for serialization */
98
101
  static final long serialVersionUID = -5902411487362274342L;
110
113
   * Class to support a building process of an estimator.
111
114
   */
112
115
  private static class Builder
113
 
    implements Serializable {
 
116
    implements Serializable, RevisionHandler {
114
117
 
115
118
    /** for serialization */
116
119
    private static final long serialVersionUID = -5810927990193597303L;
126
129
 
127
130
    /** class value index of the builder */
128
131
    int m_classValueIndex = -1; 
 
132
    
 
133
    /**
 
134
     * Returns the revision string.
 
135
     * 
 
136
     * @return          the revision
 
137
     */
 
138
    public String getRevision() {
 
139
      return RevisionUtils.extract("$Revision: 1.10 $");
 
140
    }
129
141
  }
130
142
  
131
143
  /**