public abstract class ASamplingAlgorithm<I extends IInstance> extends ai.libs.jaicore.basic.algorithm.AAlgorithm<IDataset<I>,IDataset<I>>
| Modifier and Type | Field and Description |
|---|---|
protected IDataset<I> |
sample |
protected java.lang.Integer |
sampleSize |
| Modifier | Constructor and Description |
|---|---|
protected |
ASamplingAlgorithm(IDataset<I> input) |
| Modifier and Type | Method and Description |
|---|---|
IDataset<I> |
call() |
protected ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent |
doInactiveStep() |
void |
setSampleSize(int size) |
activate, announceTimeoutDetected, avoidReinterruptionOnShutdownOnCurrentThread, cancel, checkAndConductTermination, checkTermination, computeTimeoutAware, getActivationTime, getConfig, getId, getInput, getLoggerName, getNumCPUs, getRemainingTimeToDeadline, getState, getTimeout, getTimeoutPrecautionOffset, hasNext, hasThreadBeenInterruptedDuringShutdown, interruptThreadAsPartOfShutdown, isCanceled, isShutdownInitialized, isStopCriterionSatisfied, isTimeouted, iterator, next, post, registerActiveThread, registerListener, resolveShutdownInterruptOnCurrentThread, setConfig, setLoggerName, setMaxNumThreads, setNumCPUs, setState, setTimeout, setTimeout, setTimeoutPrecautionOffset, shutdown, terminate, unregisterActiveThread, unregisterThreadAndShutdownpublic void setSampleSize(int size)
public IDataset<I> call() throws java.lang.InterruptedException, ai.libs.jaicore.basic.algorithm.AlgorithmExecutionCanceledException, ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmException
java.lang.InterruptedExceptionai.libs.jaicore.basic.algorithm.AlgorithmExecutionCanceledExceptionai.libs.jaicore.basic.algorithm.exceptions.AlgorithmExceptionprotected ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent doInactiveStep()
throws ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmException
ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmException