ai.libs.jaicore.ml.core.dataset.sampling.inmemory

Class ClusterSampling<I extends IInstance>

  • All Implemented Interfaces:
    ai.libs.jaicore.basic.algorithm.IAlgorithm<IDataset<I>,IDataset<I>>, ai.libs.jaicore.basic.Cancelable, ai.libs.jaicore.basic.ILoggingCustomizable, java.lang.Iterable<ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent>, java.util.concurrent.Callable<IDataset<I>>, java.util.Iterator<ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent>
    Direct Known Subclasses:
    GmeansSampling, KmeansSampling


    public abstract class ClusterSampling<I extends IInstance>extends ASamplingAlgorithm<I>
    • Constructor Summary

      Constructors 
      ModifierConstructor and Description
      protected ClusterSampling(long seed, org.apache.commons.math3.ml.distance.DistanceMeasure dist, IDataset<I> input) 
      protected ClusterSampling(long seed, IDataset<I> input) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      ai.libs.jaicore.basic.algorithm.events.AlgorithmEventdoAlgorithmStep() 
      java.util.List<org.apache.commons.math3.ml.clustering.CentroidCluster<I>>getClusterResults() 
      voidsetClusterResults(java.util.List<org.apache.commons.math3.ml.clustering.CentroidCluster<I>> clusterResults) 
      voidsetDistanceMeassure(org.apache.commons.math3.ml.distance.DistanceMeasure distanceMeassure) 
      • Methods inherited from class ai.libs.jaicore.basic.algorithm.AAlgorithm

        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, unregisterThreadAndShutdown
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface ai.libs.jaicore.basic.algorithm.IAlgorithm

        nextWithException
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Field Detail

      • clusterResults

        protected java.util.List<org.apache.commons.math3.ml.clustering.CentroidCluster<I extends IInstance>> clusterResults
      • currentCluster

        protected int currentCluster
      • distanceMeassure

        protected org.apache.commons.math3.ml.distance.DistanceMeasure distanceMeassure
      • seed

        protected long seed
    • Constructor Detail

      • ClusterSampling

        protected ClusterSampling(long seed,                          IDataset<I> input)
      • ClusterSampling

        protected ClusterSampling(long seed,                          org.apache.commons.math3.ml.distance.DistanceMeasure dist,                          IDataset<I> input)
    • Method Detail

      • getClusterResults

        public java.util.List<org.apache.commons.math3.ml.clustering.CentroidCluster<I>> getClusterResults()
      • setClusterResults

        public void setClusterResults(java.util.List<org.apache.commons.math3.ml.clustering.CentroidCluster<I>> clusterResults)
      • setDistanceMeassure

        public void setDistanceMeassure(org.apache.commons.math3.ml.distance.DistanceMeasure distanceMeassure)
      • doAlgorithmStep

        public ai.libs.jaicore.basic.algorithm.events.AlgorithmEvent doAlgorithmStep()


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14