Class AbstractWelchDataCollector

    • Field Detail

      • myObsCount

        protected long myObsCount
        Counts the observations when processing a replication
      • myObsCountsForReps

        protected final java.util.ArrayList<java.lang.Long> myObsCountsForReps
        Holds the number of observations for each of the replications, zero is the first replication
      • myAvgTBOForReps

        protected final java.util.ArrayList<java.lang.Double> myAvgTBOForReps
        Holds the average time between observations for each replication
      • myTimeOfLastObsForReps

        protected final java.util.ArrayList<java.lang.Double> myTimeOfLastObsForReps
        Holds the time of the last observation for each replication
      • myWithinRepStats

        protected final WeightedStatistic myWithinRepStats
        Used to collect the average when processing a replication
      • myRepStat

        protected final Statistic myRepStat
        Used to collect the overall sample average across observations
      • myTBOStats

        protected final WeightedStatistic myTBOStats
        Used to collect the time between observations when processing a replication
      • myAveragesForReps

        protected final java.util.ArrayList<java.lang.Double> myAveragesForReps
        Holds the average of the observations for each replication
      • myLastTime

        protected double myLastTime
        The time that the last observation occurred. The last observed time.
      • myLastValue

        protected double myLastValue
        The observation at the last observed time.
      • myBatchSize

        protected final double myBatchSize
        The size associated with batching the within replication observations. If the data is tally based, then it is the number of observations per batch. If the data is observation-based, then it is the time period over which the time average is computed.
      • myName

        protected final java.lang.String myName
    • Constructor Detail

      • AbstractWelchDataCollector

        public AbstractWelchDataCollector​(StatisticType statisticType,
                                          java.lang.String name,
                                          double batchSize)
        Parameters:
        statisticType - the type of statistic TALLY or TIME_PERSISTENT
        name - the name of the observations being collected
        batchSize - the amount of batching to perform on the observations within a replication
    • Method Detail

      • getBatchSize

        public final double getBatchSize()
        Description copied from interface: WelchDataCollectorIfc
        The size of a batch can be considered either in terms of the number of observations in each batch or as the amount of time covered with each batch
        Specified by:
        getBatchSize in interface WelchDataCollectorIfc
        Returns:
        the size of a batch
      • getNumberOfObservationsForEachReplication

        public final long[] getNumberOfObservationsForEachReplication()
        Description copied from interface: WelchDataCollectorIfc
        The number of observations in each replication returned as an array. 0 element is the first replication count. If no replications have been observed then the array will be empty.
        Specified by:
        getNumberOfObservationsForEachReplication in interface WelchDataCollectorIfc
        Returns:
        the number of observations for each replication
      • getAvgTimeBtwObservationsForEachReplication

        public final double[] getAvgTimeBtwObservationsForEachReplication()
        Description copied from interface: WelchDataCollectorIfc
        The average time between observations in each replication returned as an array. 0 element is the first replication observed. If no replications have been observed then the array will be empty.
        Specified by:
        getAvgTimeBtwObservationsForEachReplication in interface WelchDataCollectorIfc
        Returns:
        the average time between observations
      • getReplicationAverages

        public final double[] getReplicationAverages()
      • getTimeOfLastObservationForReps

        public final double[] getTimeOfLastObservationForReps()
      • setUpCollector

        public void setUpCollector()
        Description copied from interface: WelchDataCollectorIfc
        Should be executed once prior to any collection and should be used to clear any statistical collection and prepare the collector for collecting data.
        Specified by:
        setUpCollector in interface WelchDataCollectorIfc