public class SimpleRandomSamplingFactory<I extends IInstance> extends java.lang.Object implements ISamplingAlgorithmFactory<I,SimpleRandomSampling<I>>
| Constructor and Description |
|---|
SimpleRandomSamplingFactory() |
| Modifier and Type | Method and Description |
|---|---|
SimpleRandomSampling<I> |
getAlgorithm(int sampleSize,
IDataset<I> 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> getAlgorithm(int sampleSize, IDataset<I> inputDataset, java.util.Random random)
ISamplingAlgorithmFactorygetAlgorithm in interface ISamplingAlgorithmFactory<I extends IInstance,SimpleRandomSampling<I extends IInstance>>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.