public abstract class ClusterSampling<I extends IInstance> extends ASamplingAlgorithm<I>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<org.apache.commons.math3.ml.clustering.CentroidCluster<I>> |
clusterResults |
protected int |
currentCluster |
protected org.apache.commons.math3.ml.distance.DistanceMeasure |
distanceMeassure |
protected long |
seed |
sample, sampleSize| Modifier | Constructor and Description |
|---|---|
protected |
ClusterSampling(long seed,
org.apache.commons.math3.ml.distance.DistanceMeasure dist,
IDataset<I> input) |
protected |
ClusterSampling(long seed,
IDataset<I> input) |
| Modifier and Type | Method and Description |
|---|---|
ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent |
doAlgorithmStep() |
java.util.List<org.apache.commons.math3.ml.clustering.CentroidCluster<I>> |
getClusterResults() |
void |
setClusterResults(java.util.List<org.apache.commons.math3.ml.clustering.CentroidCluster<I>> clusterResults) |
void |
setDistanceMeassure(org.apache.commons.math3.ml.distance.DistanceMeasure distanceMeassure) |
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, unregisterThreadAndShutdownprotected java.util.List<org.apache.commons.math3.ml.clustering.CentroidCluster<I extends IInstance>> clusterResults
protected int currentCluster
protected org.apache.commons.math3.ml.distance.DistanceMeasure distanceMeassure
protected long seed
public java.util.List<org.apache.commons.math3.ml.clustering.CentroidCluster<I>> getClusterResults()
public void setClusterResults(java.util.List<org.apache.commons.math3.ml.clustering.CentroidCluster<I>> clusterResults)
public void setDistanceMeassure(org.apache.commons.math3.ml.distance.DistanceMeasure distanceMeassure)
public ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent doAlgorithmStep()