gov.sandia.cognition.learning.algorithm.hmm
Class ParallelBaumWelchAlgorithm.DistributionEstimatorTask<ObservationType>

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.learning.algorithm.hmm.ParallelBaumWelchAlgorithm.DistributionEstimatorTask<ObservationType>
Type Parameters:
ObservationType - Type of Observations.
All Implemented Interfaces:
CloneableSerializable, Serializable, Cloneable, Callable<ProbabilityFunction<ObservationType>>
Enclosing class:
ParallelBaumWelchAlgorithm<ObservationType>

protected static class ParallelBaumWelchAlgorithm.DistributionEstimatorTask<ObservationType>
extends AbstractCloneableSerializable
implements Callable<ProbabilityFunction<ObservationType>>

Re-estimates the PDF from the gammas.

See Also:
Serialized Form

Field Summary
protected  BatchLearner<Collection<? extends WeightedValue<? extends ObservationType>>,? extends ComputableDistribution<ObservationType>> distributionLearner
          My copy of the PDF estimator.
protected  int index
          Index into the gammas to pull the weights.
protected  ArrayList<DefaultWeightedValue<ObservationType>> weightedValues
          Weighted values for the PDF estimator.
 
Constructor Summary
ParallelBaumWelchAlgorithm.DistributionEstimatorTask(Collection<? extends ObservationType> data, BatchLearner<Collection<? extends WeightedValue<? extends ObservationType>>,? extends ComputableDistribution<ObservationType>> distributionLearner, int index)
          Creates an instance of DistributionEstimatorTask
 
Method Summary
 ProbabilityFunction<ObservationType> call()
           
 void setGammas(ArrayList<Vector> gammas)
          Sets the gamma samples pointer.
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

weightedValues

protected ArrayList<DefaultWeightedValue<ObservationType>> weightedValues
Weighted values for the PDF estimator.


distributionLearner

protected BatchLearner<Collection<? extends WeightedValue<? extends ObservationType>>,? extends ComputableDistribution<ObservationType>> distributionLearner
My copy of the PDF estimator.


index

protected int index
Index into the gammas to pull the weights.

Constructor Detail

ParallelBaumWelchAlgorithm.DistributionEstimatorTask

public ParallelBaumWelchAlgorithm.DistributionEstimatorTask(Collection<? extends ObservationType> data,
                                                            BatchLearner<Collection<? extends WeightedValue<? extends ObservationType>>,? extends ComputableDistribution<ObservationType>> distributionLearner,
                                                            int index)
Creates an instance of DistributionEstimatorTask

Parameters:
data - Data to stuff into the weightedValues
distributionLearner - Distribution Learner
index - Index into the gammas
Method Detail

setGammas

public void setGammas(ArrayList<Vector> gammas)
Sets the gamma samples pointer.

Parameters:
gammas - Gammas

call

public ProbabilityFunction<ObservationType> call()
Specified by:
call in interface Callable<ProbabilityFunction<ObservationType>>