All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gov.sandia.cognition.statistics.AbstractIncrementalEstimator Maven / Gradle / Ivy

There is a newer version: 4.0.1
Show newest version
/*
 * File:                AbstractIncrementalEstimator.java
 * Authors:             Kevin R. Dixon
 * Company:             Sandia National Laboratories
 * Project:             Cognitive Foundry
 * 
 * Copyright Mar 2, 2011, Sandia Corporation.
 * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
 * license for use of this work by or on behalf of the U.S. Government.
 * Export of this program may require a license from the United States
 * Government. See CopyrightHistory.txt for complete details.
 * 
 */

package gov.sandia.cognition.statistics;

import gov.sandia.cognition.learning.algorithm.AbstractBatchAndIncrementalLearner;

/**
 * Partial implementation of {@code IncrementalEstimator}.
 *
 * @param   
 *      The type of data generated by the Distribution.
 * @param   
 *      The type of the sufficient statistics for the distribution.
 * @param   
 *      The type of Distribution this is the sufficient statistics of.
 * @author  Kevin R. Dixon
 * @since   3.1.1
 */
public abstract class AbstractIncrementalEstimator, SufficientStatisticsType extends SufficientStatistic>
    extends AbstractBatchAndIncrementalLearner
    implements IncrementalEstimator
{

    /** 
     * Creates a new instance of AbstractIncrementalEstimator
     */
    public AbstractIncrementalEstimator()
    {
        super();
    }

    @Override
    @SuppressWarnings("unchecked")
    public AbstractIncrementalEstimator clone()
    {
        return (AbstractIncrementalEstimator) super.clone();
    }

    @Override
    public void update(
        final SufficientStatisticsType target,
        final DataType data)
    {
        target.update(data);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy