AbstractWelchDataCollector

abstract class AbstractWelchDataCollector(statisticType: StatisticType, name: String, batchSize: Double) : WelchDataCollectorIfc(source)

An abstract base class for building collectors of Welch data

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

Inheritors

Constructors

Link copied to clipboard
constructor(statisticType: StatisticType, name: String, batchSize: Double)

Properties

Link copied to clipboard

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.

Link copied to clipboard
override val batchSize: Double

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.

Link copied to clipboard
open override var lastTime: Double

The time that the last observation occurred. The last observed time.

Link copied to clipboard
open override var lastValue: Double

The observation at the last observed time.

Link copied to clipboard

Holds the average of the observations for each replication

Link copied to clipboard

Holds the average time between observations for each replication

Link copied to clipboard
protected val myName: String
Link copied to clipboard
protected var myObsCount: Long

Counts the observations when processing a replication

Link copied to clipboard

Holds the number of observations for each of the replications, zero is the first replication

Link copied to clipboard
protected val myRepStat: Statistic

Used to collect the overall sample average across observations

Link copied to clipboard
protected val myStatType: StatisticType
Link copied to clipboard

Used to collect the time between observations when processing a replication

Link copied to clipboard

Holds the time of the last observation for each replication

Link copied to clipboard

Used to collect the average when processing a replication

Link copied to clipboard

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.

Link copied to clipboard
open override val numberOfReplications: Int

The number of full replications observed

Link copied to clipboard

Functions

Link copied to clipboard
open override fun beginReplication()

Should be executed prior to each replication

Link copied to clipboard
open override fun endReplication()

Should be executed after each replication

Link copied to clipboard
open override fun setUpCollector()

Should be executed once prior to any collection and should be used to clear any statistical collection and prepare the collector for collecting data.