public class SystematicSampling<I extends INumericArrayInstance,D extends IOrderedDataset<I>> extends ASamplingAlgorithm<D>
sample, sampleSize| Constructor and Description |
|---|
SystematicSampling(java.util.Random random,
java.util.Comparator<I> datapointComparator,
D input)
Constructor for a custom datapoint comparator.
|
SystematicSampling(java.util.Random random,
D input)
Simple constructor that uses the default datapoint comparator.
|
| Modifier and Type | Method and Description |
|---|---|
D |
getSortedDataset() |
ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent |
nextWithException() |
void |
setSortedDataset(D sortedDataset) |
call, doInactiveStep, 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, unregisterThreadAndShutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic SystematicSampling(java.util.Random random,
D input)
random - Random Object for determining the sampling start point.public SystematicSampling(java.util.Random random,
java.util.Comparator<I> datapointComparator,
D input)
random - Random Object for determining the sampling start point.datapointComparator - Comparator to sort the dataset.public ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent nextWithException()
throws ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmException
ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmExceptionpublic D getSortedDataset()
public void setSortedDataset(D sortedDataset)