Class XPersistent

  • All Implemented Interfaces:
    Serializable

    public class XPersistent
    extends XTally

    Copyright (c) 2011-2013 TU Delft, Faculty of TBM, Systems and Simulation
    This software is licensed without restrictions to Nederlandse Organisatie voor Toegepast Natuurwetenschappelijk Onderzoek TNO (TNO), Erasmus University Rotterdam, Delft University of Technology, Panteia B.V., Stichting Projecten Binnenvaart, Ab Ovo Nederland B.V., Modality Software Solutions B.V., and Rijkswaterstaat - Dienst Water, Verkeer en Leefomgeving, including the right to sub-license sources and derived products to third parties.
    Version:
    Mar 24, 2013
    Author:
    Alexander Verbraeck
    See Also:
    Serialized Form
    • Constructor Detail

      • XPersistent

        public XPersistent​(String description,
                           DEVSSimulatorInterface.TimeDoubleUnit simulator)
        Parameters:
        description - String; description of the statistic
        simulator - DEVSSimulatorInterface.TimeDoubleUnit; the simulator
    • Method Detail

      • getSampleMean

        public double getSampleMean()
        Returns the sampleMean of all oberservations since the initialization.
        Overrides:
        getSampleMean in class XTally
        Returns:
        double the sampleMean
      • getStdDev

        public double getStdDev()
        Returns the current tally standard deviation.
        Overrides:
        getStdDev in class XTally
        Returns:
        double the standard deviation
      • getSampleVariance

        public double getSampleVariance()
        Returns the current tally variance.
        Overrides:
        getSampleVariance in class XTally
        Returns:
        double samplevariance
      • initialize

        public void initialize()
        initializes the Tally. This methods sets the max, min, n, sum and variance values to their initial values.
        Overrides:
        initialize in class XTally
      • persist

        public void persist​(double value)
        dstat.
        Parameters:
        value - double; value