gov.sandia.cognition.statistics
Interface SufficientStatistic<DataType,DistributionType>

Type Parameters:
DataType - Type of data generated by the Distribution
DistributionType - Type of Distribution this is the sufficient statistics of
All Superinterfaces:
Cloneable, CloneableSerializable, Factory<DistributionType>, Serializable
All Known Implementing Classes:
AbstractSufficientStatistic, BayesianLinearRegression.IncrementalEstimator.SufficientStatistic, BayesianRobustLinearRegression.IncrementalEstimator.SufficientStatistic, MultivariateGaussian.SufficientStatistic, MultivariateGaussian.SufficientStatisticCovarianceInverse, UnivariateGaussian.SufficientStatistic

@PublicationReference(author="Wikipedia",
                      title="Sufficient statistic",
                      type=WebPage,
                      year=2011,
                      url="http://en.wikipedia.org/wiki/Sufficient_statistic")
public interface SufficientStatistic<DataType,DistributionType>
extends Factory<DistributionType>, CloneableSerializable

Sufficient statistics are the data which are sufficient to store all information to create an underlying parameter, such as a Distribution.

Since:
3.1
Author:
Kevin R. Dixon

Method Summary
 void create(DistributionType distribution)
          Modifies the given distribution with the parameters indicated by the sufficient statistics
 long getCount()
          Gets the count
 void update(DataType value)
          Updates the sufficient statistics from the given value
 void update(Iterable<? extends DataType> values)
          Updates the sufficient statistics from the given set of values
 
Methods inherited from interface gov.sandia.cognition.factory.Factory
create
 
Methods inherited from interface gov.sandia.cognition.util.CloneableSerializable
clone
 

Method Detail

getCount

long getCount()
Gets the count

Returns:
Number of data points used to create this SufficientStatistic

create

void create(DistributionType distribution)
Modifies the given distribution with the parameters indicated by the sufficient statistics

Parameters:
distribution - Distribution to modify by side effect

update

void update(DataType value)
Updates the sufficient statistics from the given value

Parameters:
value - Value to update the sufficient statistics

update

void update(Iterable<? extends DataType> values)
Updates the sufficient statistics from the given set of values

Parameters:
values - Values to update the sufficient statistics