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

« back to all changes in this revision

Viewing changes to weka/experiment/PairedTTester.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:
30
30
import weka.core.Option;
31
31
import weka.core.OptionHandler;
32
32
import weka.core.Range;
 
33
import weka.core.RevisionHandler;
 
34
import weka.core.RevisionUtils;
33
35
import weka.core.Utils;
34
36
 
35
37
import java.io.BufferedReader;
85
87
 <!-- options-end -->
86
88
 *
87
89
 * @author Len Trigg (trigg@cs.waikato.ac.nz)
88
 
 * @version $Revision: 1.34 $
 
90
 * @version $Revision: 1.35 $
89
91
 */
90
92
public class PairedTTester 
91
 
  implements OptionHandler, Tester {
 
93
  implements OptionHandler, Tester, RevisionHandler {
92
94
  
93
95
  /** for serialization */
94
96
  static final long serialVersionUID = 8370014624008728610L;
155
157
  protected ResultMatrix m_ResultMatrix = new ResultMatrixPlainText();
156
158
  
157
159
  /** A list of unique "dataset" specifiers that have been observed */
158
 
  protected class DatasetSpecifiers {
 
160
  protected class DatasetSpecifiers
 
161
    implements RevisionHandler {
159
162
 
160
163
    /** the specifiers that have been observed */
161
164
    FastVector m_Specifiers = new FastVector();
211
214
 
212
215
      return m_Specifiers.size();
213
216
    }
 
217
    
 
218
    /**
 
219
     * Returns the revision string.
 
220
     * 
 
221
     * @return          the revision
 
222
     */
 
223
    public String getRevision() {
 
224
      return RevisionUtils.extract("$Revision: 1.35 $");
 
225
    }
214
226
  }
215
227
 
216
228
  /** Utility class to store the instances pertaining to a dataset */
217
 
  protected class Dataset {
 
229
  protected class Dataset
 
230
    implements RevisionHandler {
218
231
 
219
232
    /** the template */
220
233
    Instance m_Template;
290
303
      }
291
304
      m_Dataset = newDataset;
292
305
    }
 
306
    
 
307
    /**
 
308
     * Returns the revision string.
 
309
     * 
 
310
     * @return          the revision
 
311
     */
 
312
    public String getRevision() {
 
313
      return RevisionUtils.extract("$Revision: 1.35 $");
 
314
    }
293
315
  }
294
316
 
295
317
  /** Utility class to store the instances in a resultset */
296
 
  protected class Resultset {
 
318
  protected class Resultset
 
319
    implements RevisionHandler {
297
320
 
298
321
    /** the template */
299
322
    Instance m_Template;
397
420
        ((Dataset)m_Datasets.elementAt(i)).sort(runColumn);
398
421
      }
399
422
    }
 
423
    
 
424
    /**
 
425
     * Returns the revision string.
 
426
     * 
 
427
     * @return          the revision
 
428
     */
 
429
    public String getRevision() {
 
430
      return RevisionUtils.extract("$Revision: 1.35 $");
 
431
    }
400
432
  } // Resultset
401
433
 
402
434
 
1408
1440
  }
1409
1441
  
1410
1442
  /**
 
1443
   * Returns the revision string.
 
1444
   * 
 
1445
   * @return            the revision
 
1446
   */
 
1447
  public String getRevision() {
 
1448
    return RevisionUtils.extract("$Revision: 1.35 $");
 
1449
  }
 
1450
  
 
1451
  /**
1411
1452
   * Test the class from the command line.
1412
1453
   *
1413
1454
   * @param args contains options for the instance ttests