INSTANCE - the type of instances in the datasetpublic interface ListDataset<INSTANCE> extends Dataset<INSTANCE>, List<INSTANCE>
ListDataset is a Dataset presented as an ordered list of
instances. For convenience it extends the List interface; note
however, that many dataset implementations will be read-only.| Modifier and Type | Method and Description |
|---|---|
INSTANCE |
getInstance(int index)
Returns the instance at the specified position in this dataset.
|
getRandomInstance, numInstancesINSTANCE getInstance(int index)
index - index of the instance to returnIndexOutOfBoundsException - if the index is out of range (
index < 0 || index >= size())