Interface IStratiAmountSelector<D extends IDataset<?>>
-
- All Known Implementing Classes:
AttributeBasedStratiAmountSelectorAndAssigner,GMeansStratiAmountSelectorAndAssigner
public interface IStratiAmountSelector<D extends IDataset<?>>Functional interface to write custom logic for selecting the amount of strati for a dataset.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetNumCPUs()intselectStratiAmount(D dataset)Select a suitable amount of strati for a Dataset.voidsetNumCPUs(int numberOfCPUs)Sets the number of CPU cores that can be used for parallel computation
-
-
-
Method Detail
-
selectStratiAmount
int selectStratiAmount(D dataset)
Select a suitable amount of strati for a Dataset.- Parameters:
dataset- The dataset that will be stratified.- Returns:
- The determined amount of strati.
-
setNumCPUs
void setNumCPUs(int numberOfCPUs)
Sets the number of CPU cores that can be used for parallel computation- Parameters:
numberOfCPUs-
-
getNumCPUs
int getNumCPUs()
-
-