gov.sandia.cognition.statistics.distribution
Class LaplaceDistribution.WeightedMaximumLikelihoodEstimator

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.statistics.distribution.LaplaceDistribution.WeightedMaximumLikelihoodEstimator
All Implemented Interfaces:
BatchLearner<Collection<? extends WeightedValue<? extends Double>>,LaplaceDistribution>, DistributionWeightedEstimator<Double,LaplaceDistribution>, CloneableSerializable, Serializable, Cloneable
Enclosing class:
LaplaceDistribution

public static class LaplaceDistribution.WeightedMaximumLikelihoodEstimator
extends AbstractCloneableSerializable
implements DistributionWeightedEstimator<Double,LaplaceDistribution>

Creates a UnivariateGaussian from weighted data

See Also:
Serialized Form

Constructor Summary
LaplaceDistribution.WeightedMaximumLikelihoodEstimator()
          Default constructor
 
Method Summary
 LaplaceDistribution learn(Collection<? extends WeightedValue<? extends Double>> data)
          Creates a new instance of LaplaceDistribution using a weighted Maximum Likelihood estimate based on the given data
 
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
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 

Constructor Detail

LaplaceDistribution.WeightedMaximumLikelihoodEstimator

public LaplaceDistribution.WeightedMaximumLikelihoodEstimator()
Default constructor

Method Detail

learn

public LaplaceDistribution learn(Collection<? extends WeightedValue<? extends Double>> data)
Creates a new instance of LaplaceDistribution using a weighted Maximum Likelihood estimate based on the given data

Specified by:
learn in interface BatchLearner<Collection<? extends WeightedValue<? extends Double>>,LaplaceDistribution>
Parameters:
data - Weighed pairs of data (first is data, second is weight) that was generated by some unknown LaplaceDistribution distribution
Returns:
Maximum Likelihood UnivariateGaussian that generated the data