- public class RandomSample
- extends java.lang.Object
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public RandomSample(long random_seed)
public void setSampleProportion(float sampleProportion)
- Sets the proportion of records to keep.
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)
- Sets the size of the sample to keep.
public Table sample(Table input)
Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.