public class StratifiedSampling<I,D extends IOrderedDataset<I>> extends ASamplingAlgorithm<D>
sample, sampleSize| Constructor and Description |
|---|
StratifiedSampling(IStratiAmountSelector<D> stratiAmountSelector,
IStratiAssigner<I,D> stratiAssigner,
java.util.Random random,
D input)
Constructor for Stratified Sampling.
|
| Modifier and Type | Method and Description |
|---|---|
IDataset[] |
getStrati() |
ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent |
nextWithException() |
void |
setStrati(IDataset[] strati) |
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 StratifiedSampling(IStratiAmountSelector<D> stratiAmountSelector, IStratiAssigner<I,D> stratiAssigner, java.util.Random random, D input)
stratiAmountSelector - The custom selector for the used amount of strati.stratiAssigner - Custom logic to assign datapoints into strati.random - Random object for sampling inside of the strati.public ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent nextWithException()
throws java.lang.InterruptedException,
ai.libs.jaicore.basic.algorithm.exceptions.AlgorithmException
java.lang.InterruptedExceptionai.libs.jaicore.basic.algorithm.exceptions.AlgorithmExceptionpublic IDataset[] getStrati()
public void setStrati(IDataset[] strati)