edu.udo.cs.yale.example.test
Class ExampleTestTools

java.lang.Object
  extended by edu.udo.cs.yale.example.test.ExampleTestTools

public class ExampleTestTools
extends java.lang.Object

Provides factory methods for text fixtures.

Version:
$Id: ExampleTestTools.java,v 1.22 2006/08/03 14:39:34 ingomierswa Exp $
Author:
Simon Fischer, Ingo Mierswa

Constructor Summary
ExampleTestTools()
           
 
Method Summary
static Attribute attributeDogCatMouse()
           
static Attribute attributeInt()
           
static Attribute attributeReal()
           
static Attribute attributeReal(int index)
           
static Attribute attributeYesNo()
           
static DataRowReader createDataRowReader(DataRowFactory factory, Attribute[] attributes, java.lang.String[][] values)
          Returns a DataRowReader returning the given values.
static DataRowReader createDataRowReader(double[][] values)
          Returns a DataRowReader returning the given values.
static DataRowReader createDataRowReader(int size, Attribute[] attributes)
          Returns a DataRowReader returning random values (generated with fixed random seed).
static Attribute[] createFourAttributes()
          Creates four attributes: "animal" (dog/cat/mouse), "decision" (yes/no), "int", and "real".
static MemoryExampleTable createMemoryExampleTable(int size)
           
static Attribute createPredictedLabel(ExampleSet exampleSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleTestTools

public ExampleTestTools()
Method Detail

createDataRowReader

public static DataRowReader createDataRowReader(DataRowFactory factory,
                                                Attribute[] attributes,
                                                java.lang.String[][] values)
Returns a DataRowReader returning the given values.


createDataRowReader

public static DataRowReader createDataRowReader(double[][] values)
Returns a DataRowReader returning the given values.


createDataRowReader

public static DataRowReader createDataRowReader(int size,
                                                Attribute[] attributes)
Returns a DataRowReader returning random values (generated with fixed random seed).


createMemoryExampleTable

public static MemoryExampleTable createMemoryExampleTable(int size)

attributeDogCatMouse

public static Attribute attributeDogCatMouse()

attributeYesNo

public static Attribute attributeYesNo()

attributeInt

public static Attribute attributeInt()

attributeReal

public static Attribute attributeReal()

attributeReal

public static Attribute attributeReal(int index)

createFourAttributes

public static Attribute[] createFourAttributes()
Creates four attributes: "animal" (dog/cat/mouse), "decision" (yes/no), "int", and "real".


createPredictedLabel

public static Attribute createPredictedLabel(ExampleSet exampleSet)


Copyright © 2001-2006