gov.sandia.cognition.statistics.distribution
Class DefaultDataDistribution.Estimator<KeyType>

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.learning.algorithm.AbstractBatchAndIncrementalLearner<KeyType,DefaultDataDistribution.PMF<KeyType>>
          extended by gov.sandia.cognition.statistics.distribution.DefaultDataDistribution.Estimator<KeyType>
Type Parameters:
KeyType - Type of Key in the distribution
All Implemented Interfaces:
BatchAndIncrementalLearner<KeyType,DefaultDataDistribution.PMF<KeyType>>, BatchLearner<Collection<? extends KeyType>,DefaultDataDistribution.PMF<KeyType>>, IncrementalLearner<KeyType,DefaultDataDistribution.PMF<KeyType>>, DistributionEstimator<KeyType,DefaultDataDistribution.PMF<KeyType>>, CloneableSerializable, Serializable, Cloneable
Enclosing class:
DefaultDataDistribution<KeyType>

public static class DefaultDataDistribution.Estimator<KeyType>
extends AbstractBatchAndIncrementalLearner<KeyType,DefaultDataDistribution.PMF<KeyType>>
implements DistributionEstimator<KeyType,DefaultDataDistribution.PMF<KeyType>>

Estimator for a DefaultDataDistribution

See Also:
Serialized Form

Constructor Summary
DefaultDataDistribution.Estimator()
          Default constructor
 
Method Summary
 DefaultDataDistribution.PMF<KeyType> createInitialLearnedObject()
          Creates a new initial learned object, before any data is given.
 void update(DefaultDataDistribution.PMF<KeyType> target, KeyType data)
          The update method updates an object of ResultType using the given new data of type DataType, using some form of "learning" algorithm.
 
Methods inherited from class gov.sandia.cognition.learning.algorithm.AbstractBatchAndIncrementalLearner
clone, learn, learn, update
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.learning.algorithm.BatchLearner
learn
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 

Constructor Detail

DefaultDataDistribution.Estimator

public DefaultDataDistribution.Estimator()
Default constructor

Method Detail

createInitialLearnedObject

public DefaultDataDistribution.PMF<KeyType> createInitialLearnedObject()
Description copied from interface: IncrementalLearner
Creates a new initial learned object, before any data is given.

Specified by:
createInitialLearnedObject in interface IncrementalLearner<KeyType,DefaultDataDistribution.PMF<KeyType>>
Returns:
The initial learned object.

update

public void update(DefaultDataDistribution.PMF<KeyType> target,
                   KeyType data)
Description copied from interface: IncrementalLearner
The update method updates an object of ResultType using the given new data of type DataType, using some form of "learning" algorithm.

Specified by:
update in interface IncrementalLearner<KeyType,DefaultDataDistribution.PMF<KeyType>>
Parameters:
target - The object to update.
data - The new data for the learning algorithm to use to update the object.