Package org.nlpub.watset.eval
Class Sampling
java.lang.Object
org.nlpub.watset.eval.Sampling
Utilities for statistical evaluation of computational experiments.
-
Method Summary
-
Method Details
-
sample
Creates a bootstrapped dataset using sampling with replacement from the given dataset.The dataset can be obtained using
Collection.toArray(Object[]).- Type Parameters:
T- the type of dataset elements- Parameters:
dataset- the dataset to sample fromrandom- the random number generator- Returns:
- a sampled dataset
-