RandomAccesspublic class RandomizableMemoryContainer extends MemoryContainer
| Constructor | Description |
|---|---|
RandomizableMemoryContainer() |
|
RandomizableMemoryContainer(MemoryContainer memoryContainer) |
| Modifier and Type | Method | Description |
|---|---|---|
MemoryContainer |
getSubContainer(int startIndex,
int endIndex) |
Provides a sub container that is composed from all examples between
parameters
startIndex and endIndex. |
void |
radomize(java.util.Random random) |
Randomize memory container.
|
void |
swap(int firstIndex,
int secondIndex) |
Swaps a pair of examples.
|
addExample, addExample, clear, clone, deleteExample, getAttrCount, getAttribute, getAttributes, getExample, getFileInfo, getId, getMemoryContainerDescription, insertExample, insertExample, setAttributes, setExample, setFileInfo, setId, setMemoryContainerDescription, sizepublic RandomizableMemoryContainer()
public RandomizableMemoryContainer(MemoryContainer memoryContainer)
public void radomize(java.util.Random random)
random - random generator to be used in randomization processpublic void swap(int firstIndex,
int secondIndex)
firstIndex - index of the first examplesecondIndex - index of the second examplepublic MemoryContainer getSubContainer(int startIndex, int endIndex)
startIndex and endIndex.startIndex - index of the first example in the sub containerendIndex - index of the last example in the sub container