public class SimpleRandomSamplingFactory<I,D extends IOrderedDataset<I>> extends java.lang.Object implements ISamplingAlgorithmFactory<D,SimpleRandomSampling<I,D>>
| Constructor and Description |
|---|
SimpleRandomSamplingFactory() |
| Modifier and Type | Method and Description |
|---|---|
SimpleRandomSampling<I,D> |
getAlgorithm(int sampleSize,
D inputDataset,
java.util.Random random)
After the necessary config is done, this method returns a fully configured
instance of a sampling algorithm.
|
public SimpleRandomSampling<I,D> getAlgorithm(int sampleSize, D inputDataset, java.util.Random random)
ISamplingAlgorithmFactorygetAlgorithm in interface ISamplingAlgorithmFactory<D extends IOrderedDataset<I>,SimpleRandomSampling<I,D extends IOrderedDataset<I>>>sampleSize - Desired size of the sample that will be created.inputDataset - Dataset where the sample will be drawn from.random - Random object to make samples reproducible.