AllDirectionsMemoryContainer
, MemoryContainer
, RandomizableMemoryContainer
, WekaTransferableMemoryContainer
public interface RandomAccess
Modifier and Type | Method | Description |
---|---|---|
void |
deleteExample(int index) |
Deletes one row of decison table.
|
Example |
getExample(int index) |
Direct access to specified example in the table.
|
Example |
insertExample(int index,
Example example) |
This method should copy an example to given position.
|
void |
setExample(int index,
Example example) |
It copies all fields' values from given example into the one
at specified row.
|
int |
size() |
Gives the table length, number of stored examples.
|
Example getExample(int index)
index
- row in the tableExample insertExample(int index, Example example) throws ContainerFailureException
index
- row to place an exampleexample
- fields of the same types as in attrbiutesContainerFailureException
- when example doesn't fit to the attributesvoid setExample(int index, Example example) throws ContainerFailureException
index
- row to write an exampleexample
- set of fields, which type is the same as in attributesContainerFailureException
- when example has different type in any fieldvoid deleteExample(int index)
index
- row to delete example fromint size()