Class RandomSampler

java.lang.Object
edu.cmu.tetrad.data.RandomSampler

public final class RandomSampler extends Object
Provides a static method for sampling without replacement from a dataset to create a new dataset with a sample size supplied by the user.
Author:
Frank Wimberly
  • Constructor Details

    • RandomSampler

      public RandomSampler()
  • Method Details

    • sample

      public static DataSet sample(DataSet dataSet, int newSampleSize)
      This method takes a dataset and a sample size and creates a new dataset containing that number of samples by drawing with replacement from the original dataset.