com.rapidminer.example.table
Class RandomExampleTable
java.lang.Object
com.rapidminer.example.table.AbstractExampleTable
com.rapidminer.example.table.RandomExampleTable
- All Implemented Interfaces:
- ExampleTable, java.io.Serializable
public class RandomExampleTable
- extends AbstractExampleTable
This class is used for example sets which should provide random values for
the given attributes, i.e. each random value lies in the same range as values
of the given attributes (min and max) of the base example set. Please note that the attributes must
already have proper minimum and maximum values. The random values are
constructed by a RandomDataRowReader.
- Author:
- Ingo Mierswa
Exp $
- See Also:
- Serialized Form
| Methods inherited from class com.rapidminer.example.table.AbstractExampleTable |
addAttribute, addAttributes, createExampleSet, createExampleSet, createExampleSet, createExampleSet, createExampleSet, createExampleSet, findAttribute, getAttribute, getAttributeCount, getAttributes, getNumberOfAttributes, removeAttribute, removeAttribute, toDataString, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RandomExampleTable
public RandomExampleTable(ExampleSet baseExampleSet,
java.util.List<Attribute> attributes,
int size)
getDataRowReader
public DataRowReader getDataRowReader()
- Description copied from interface:
ExampleTable
- Returns an Iterator for example data given as
DataRow
objects. This should be used in all cases where iteration is desired.
Since ExampleTable.getDataRow(int) does not ensure to work in an efficient
way the usage of this method is preferred (instead using for-loops).
getDataRow
public DataRow getDataRow(int index)
- Description copied from interface:
ExampleTable
- Returns the i-th data row. Calling methods cannot rely on the efficiency
of this method. Memory based example tables should return the data row in
O(1).
size
public int size()
- Description copied from interface:
ExampleTable
- Returns the number of examples.
Copyright © 2001-2009 by Rapid-I