public static class UnivariateGaussian.WeightedMaximumLikelihoodEstimator extends AbstractCloneableSerializable implements DistributionWeightedEstimator<java.lang.Double,UnivariateGaussian.PDF>
Constructor and Description |
---|
WeightedMaximumLikelihoodEstimator()
Default constructor
|
WeightedMaximumLikelihoodEstimator(double defaultVariance)
Creates a new instance of WeightedMaximumLikelihoodEstimator
|
Modifier and Type | Method and Description |
---|---|
UnivariateGaussian.PDF |
learn(java.util.Collection<? extends WeightedValue<? extends java.lang.Double>> data)
Creates a new instance of UnivariateGaussian using a weighted
Maximum Likelihood estimate based on the given data
|
static UnivariateGaussian.PDF |
learn(java.util.Collection<? extends WeightedValue<? extends java.lang.Number>> data,
double defaultVariance)
Creates a new instance of UnivariateGaussian using a weighted
Maximum Likelihood estimate based on the given data
|
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
public WeightedMaximumLikelihoodEstimator()
public WeightedMaximumLikelihoodEstimator(double defaultVariance)
defaultVariance
- Amount to add to the variance to keep it from being 0.0public UnivariateGaussian.PDF learn(java.util.Collection<? extends WeightedValue<? extends java.lang.Double>> data)
learn
in interface BatchLearner<java.util.Collection<? extends WeightedValue<? extends java.lang.Double>>,UnivariateGaussian.PDF>
data
- Weighed pairs of data (first is data, second is weight) that was
generated by some unknown UnivariateGaussian distributionpublic static UnivariateGaussian.PDF learn(java.util.Collection<? extends WeightedValue<? extends java.lang.Number>> data, double defaultVariance)
data
- Weighed pairs of data (first is data, second is weight) that was
generated by some unknown UnivariateGaussian distributiondefaultVariance
- Amount to add to the variance to keep it from being 0.0