/**
 * A class for numerical series
 *
 * @version	$Id: NumericalSeries.java,v 1.1 2003/10/07 10:06:55 nthiery Exp $
 * @author	Nicolas M. Thiéry <nthiery@users.sourceforge.net>
**/

import java.lang.Number;
import java.util.ArrayList;

public class NumericalSeries extends ArrayList {

    /**
     * Invariant: meanCache is null or contains the mean value of the
     * array entries, and similar wise for all the values in the cache.
     **/

    Number meanCache         = null;
    Number meanDevianceCache = null;
    Number varianceCache     = null;

    /**
     * Returns the mean value of the numerical series
     *
     * @return		the mean value of the numerical series
     **/
    public Number mean() {
	//
	// ...
	//
	return new Float(0);
    }

    /**
     * Returns the mean deviance of the numerical series
     *
     * @return		the mean deviance of the numerical series
     **/
    public Number meanDeviance() {
	//
	// ...
	//
	return new Float(0);
    }

    /**
     * Returns the variance of the numerical series
     *
     * @return		the variance of the numerical series
     **/
    public Number variance() {
	//
	// ...
	//
	return new Float(0);
    }
}
