public class ReservoirSampling extends AFileSamplingAlgorithm
outputFileWriter, sampleSize| Constructor and Description |
|---|
ReservoirSampling(java.util.Random random,
java.io.File input) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanUp()
Implement custom clean up behaviour.
|
ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent |
nextWithException() |
call, setOutputFileName, setSampleSizeactivate, 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 ReservoirSampling(java.util.Random random,
java.io.File input)
public ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent nextWithException()
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 void cleanUp()
AFileSamplingAlgorithmcleanUp in class AFileSamplingAlgorithm