WelchDataArrayCollector

class WelchDataArrayCollector(maxNumObs: Int, maxNumReps: Int, statisticType: StatisticType, name: String, batchSize: Double) : AbstractWelchDataCollector

Constructors

Link copied to clipboard
constructor(maxNumObs: Int, maxNumReps: Int, 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

Columns are the replications, rows are the data

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.

If there have been no replications, then this returns 0

Link copied to clipboard

If no replications have been completed this returns 0

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
Link copied to clipboard

Welch average is across each replication for each observation

Link copied to clipboard

Gets an array that contains the cumulative average over the Welch Averages

Functions

Link copied to clipboard
open override fun beginReplication()

Should be executed prior to each replication

Link copied to clipboard
open override fun cleanUpCollector()

Should be executed once after all replications have been observed

Link copied to clipboard
fun clearData()

Sets all the data to Double.NaN

Link copied to clipboard
open override fun collect(time: Double, value: Double)
Link copied to clipboard
open override fun endReplication()

Should be executed after each replication

Link copied to clipboard
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.

Link copied to clipboard

Writes out the number of observations to the supplied PrintWriter This results in a comma separated value file that has each rows containing each observation for each replication and each replication as columns. The last two columns are avg is the average across the replications and cumAvg. The file is flushed and closed.

Link copied to clipboard

Writes out all the observations to the supplied PrintWriter This results in a comma separated value file that has two columns: Avg, CumAvg containing each Welch plot data point for all the observations.