|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.yale.example.test.ExampleTestTools
public class ExampleTestTools
Provides factory methods for text fixtures.
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 |
---|
public ExampleTestTools()
Method Detail |
---|
public static DataRowReader createDataRowReader(DataRowFactory factory, Attribute[] attributes, java.lang.String[][] values)
public static DataRowReader createDataRowReader(double[][] values)
public static DataRowReader createDataRowReader(int size, Attribute[] attributes)
public static MemoryExampleTable createMemoryExampleTable(int size)
public static Attribute attributeDogCatMouse()
public static Attribute attributeYesNo()
public static Attribute attributeInt()
public static Attribute attributeReal()
public static Attribute attributeReal(int index)
public static Attribute[] createFourAttributes()
public static Attribute createPredictedLabel(ExampleSet exampleSet)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |