ObservationType
- Type of Observations.protected static class ParallelBaumWelchAlgorithm.DistributionEstimatorTask<ObservationType> extends AbstractCloneableSerializable implements java.util.concurrent.Callable<ProbabilityFunction<ObservationType>>
Modifier and Type | Field and Description |
---|---|
protected BatchLearner<java.util.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 java.util.ArrayList<DefaultWeightedValue<ObservationType>> |
weightedValues
Weighted values for the PDF estimator.
|
Constructor and Description |
---|
DistributionEstimatorTask(java.util.Collection<? extends ObservationType> data,
BatchLearner<java.util.Collection<? extends WeightedValue<? extends ObservationType>>,? extends ComputableDistribution<ObservationType>> distributionLearner,
int index)
Creates an instance of DistributionEstimatorTask
|
Modifier and Type | Method and Description |
---|---|
ProbabilityFunction<ObservationType> |
call() |
void |
setGammas(java.util.ArrayList<Vector> gammas)
Sets the gamma samples pointer.
|
clone
protected java.util.ArrayList<DefaultWeightedValue<ObservationType>> weightedValues
protected BatchLearner<java.util.Collection<? extends WeightedValue<? extends ObservationType>>,? extends ComputableDistribution<ObservationType>> distributionLearner
protected int index
public DistributionEstimatorTask(java.util.Collection<? extends ObservationType> data, BatchLearner<java.util.Collection<? extends WeightedValue<? extends ObservationType>>,? extends ComputableDistribution<ObservationType>> distributionLearner, int index)
data
- Data to stuff into the weightedValuesdistributionLearner
- Distribution Learnerindex
- Index into the gammaspublic void setGammas(java.util.ArrayList<Vector> gammas)
gammas
- Gammaspublic ProbabilityFunction<ObservationType> call()
call
in interface java.util.concurrent.Callable<ProbabilityFunction<ObservationType>>