nl.tudelft.simulation.jstats.statistics
Class Persistent
java.lang.Object
nl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.jstats.statistics.StatisticsObject
nl.tudelft.simulation.jstats.statistics.Tally
nl.tudelft.simulation.jstats.statistics.Persistent
- All Implemented Interfaces:
- Serializable, EventListener, EventListenerInterface, EventProducerInterface, Swingable
public class Persistent
- extends Tally
The Persisten class defines a statistics event persistent. A Persistent is a
time-averaged tally.
(c) copyright 2002-2005-2004 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
- Since:
- 1.2
- Version:
- $Revision: 1.1 $ $Date: 2007/01/06 13:25:43 $
- Author:
- Peter Jacobs
- See Also:
- Serialized Form
Field Summary |
static EventType |
VALUE_EVENT
VALUE_EVENT is fired whenever on a change in measurements |
Fields inherited from class nl.tudelft.simulation.jstats.statistics.Tally |
BOTH_SIDE_CONFIDENCE, description, LEFT_SIDE_CONFIDENCE, max, MAX_EVENT, min, MIN_EVENT, n, N_EVENT, RIGTH_SIDE_CONFIDENCE, SAMPLE_MEAN_EVENT, SAMPLE_VARIANCE_EVENT, sampleMean, semaphore, STANDARD_DEVIATION_EVENT, sum, SUM_EVENT, varianceSum |
Constructor Summary |
Persistent(String description)
constructs a new Persistent with a description. |
Methods inherited from class nl.tudelft.simulation.jstats.statistics.Tally |
getConfidenceInterval, getConfidenceInterval, getDescription, getMax, getMin, getN, getSampleMean, getSum, getTable, isInitialized, setFilter, setMax, setMin, setN, setSampleMean, setSum, toString |
Methods inherited from class nl.tudelft.simulation.event.EventProducer |
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener |
VALUE_EVENT
public static final EventType VALUE_EVENT
- VALUE_EVENT is fired whenever on a change in measurements
Persistent
public Persistent(String description)
- constructs a new Persistent with a description.
- Parameters:
description
- the description of this Persistent
getStdDev
public double getStdDev()
- Description copied from class:
Tally
- Returns the current tally standard deviation
- Overrides:
getStdDev
in class Tally
- Returns:
- double the standard deviation
- See Also:
Tally.getStdDev()
getSampleVariance
public double getSampleVariance()
- Description copied from class:
Tally
- Returns the current tally variance
- Overrides:
getSampleVariance
in class Tally
- Returns:
- double samplevariance
- See Also:
Tally.getSampleVariance()
initialize
public void initialize()
- Description copied from class:
Tally
- initializes the Tally. This methods sets the max, min, n, sum and
variance values to their initial values.
- Overrides:
initialize
in class Tally
- See Also:
Tally.initialize()
notify
public void notify(EventInterface event)
- Specified by:
notify
in interface EventListenerInterface
- Overrides:
notify
in class Tally
- See Also:
#notify(nl.tudelft.simulation.event.EventInterface)
Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.