package org.djutils.stats.summarizers; import java.io.Serializable; /** * The Tally interface defines the methods to be implemented by a tally object, which ingests a series of values and provides * mean, standard deviation, etc. of the ingested values. This basic interface definews the methods that all tallies share. *
* Copyright (c) 2002-2020 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See
* for project information https://simulation.tudelft.nl. The DSOL
* project is distributed under a three-clause BSD-style license, which can be found at
*
* https://simulation.tudelft.nl/dsol/3.0/license.html.
* @author Alexander Verbraeck
* @author Peter Knoppers
*/
public interface BasicTallyInterface extends Serializable
{
/**
* initializes the Tally. This methods sets the max, min, n, sum and variance values to their initial values.
*/
void initialize();
/**
* returns the description of this tally.
* @return Sting description
*/
String getDescription();
/**
* Returns the number of observations.
* @return long n
*/
long getN();
/**
* Returns the max.
* @return double
*/
double getMax();
/**
* Returns the min.
* @return double
*/
double getMin();
}