Package edu.cmu.tetrad.data
Class RandomSampler
java.lang.Object
edu.cmu.tetrad.data.RandomSampler
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
RandomSampler
public RandomSampler()
-
-
Method Details
-
sample
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.
-