edu.mssm.crover.tables.treatments
Class RandomSample

java.lang.Object
  |
  +--edu.mssm.crover.tables.treatments.RandomSample

public class RandomSample
extends java.lang.Object


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

RandomSample

public RandomSample(long random_seed)
Method Detail

setSampleProportion

public void setSampleProportion(float sampleProportion)
Sets the proportion of records to keep.

Parameters:
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.

setSampleSize

public void setSampleSize(long sampleSize)
Sets the size of the sample to keep.


sample

public Table sample(Table input)


Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.