Interface ISamplingAlgorithmFactory<I,D extends IDataset<I>,A extends ASamplingAlgorithm<I,D>>
-
- Type Parameters:
I- Type of the dataset instances.A- Type of the sampling algorithm that will be created.
- All Known Subinterfaces:
IRerunnableSamplingAlgorithmFactory<I,D,A>
- All Known Implementing Classes:
CaseControlSamplingFactory,GmeansSamplingFactory,KmeansSamplingFactory,LocalCaseControlSamplingFactory,OSMACSamplingFactory,SimpleRandomSamplingFactory,StratifiedSamplingFactory,SystematicSamplingFactory
public interface ISamplingAlgorithmFactory<I,D extends IDataset<I>,A extends ASamplingAlgorithm<I,D>>Interface for a factory, which creates a sampling algorithm.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AgetAlgorithm(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.
-
-
-
Method Detail
-
getAlgorithm
A 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.- Parameters:
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.- Returns:
- Configured sampling algorithm object.
-
-