|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.uiuc.ge.illigal.gale.data.RandomSamplingDataView
This class is a view over a certain InstanceMemory.
Field Summary | |
private float |
fProportion
The proportion of instances randomly pick |
private int |
iMaxSize
The maximum number of instances available |
private int |
iSize
The number of instances randomly pick |
private edu.uiuc.ge.illigal.gale.data.OrderedSet |
osData
The Ordered data set |
private java.util.Random |
rnd
The random number generator object |
Constructor Summary | |
RandomSamplingDataView(edu.uiuc.ge.illigal.gale.data.OrderedSet os,
float fProp,
java.util.Random r)
Builds a view over the OrderSet given. |
Method Summary | |
edu.uiuc.ge.illigal.gale.data.Instance |
getInstance(int iPos)
Returns the instance for the given position |
int |
getSize()
Returns the number of instances in the OrderedSet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private edu.uiuc.ge.illigal.gale.data.OrderedSet osData
private int iSize
private int iMaxSize
private float fProportion
private java.util.Random rnd
Constructor Detail |
public RandomSamplingDataView(edu.uiuc.ge.illigal.gale.data.OrderedSet os, float fProp, java.util.Random r)
os
- The ordered set that contains the datafProp
- The proportion of os instances to showr
- The random number generatorMethod Detail |
public edu.uiuc.ge.illigal.gale.data.Instance getInstance(int iPos)
OrderedSet
getInstance
in interface OrderedSet
iPos
- Index of the requested instance
public int getSize()
OrderedSet
getSize
in interface OrderedSet
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |