|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.tables.treatments.RandomSample
| Constructor Summary | |
RandomSample(long random_seed)
|
|
| Method Summary | |
Table |
sample(Table input)
|
void |
setSampleProportion(float sampleProportion)
Sets the proportion of records to keep. |
void |
setSampleSize(long sampleSize)
Sets the size of the sample to keep. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RandomSample(long random_seed)
| Method Detail |
public void setSampleProportion(float sampleProportion)
sampleProportion - Number between 0 and 1 which indicate the proportion of records to keep in the output sample.
0 means no record is sampled, 1 means all records are sampled.public void setSampleSize(long sampleSize)
public Table sample(Table input)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||