WelchDataArrayObserver

class WelchDataArrayObserver(responseVariable: Response, maxNumObs: Int = 50000, maxNumReps: Int = 20, batchSize: Double) : ModelElementObserver

Collects Welch data in to an array. The size of the array must be specified when creating the observer. Any data that is observed that results in more data than the array size is ignored (not stored).

Permits the creation of CSV files that hold the data and the Welch plotting data

This is essentially an in memory version of the WelchDataFileObserver

Parameters

responseVariable

the ResponseVariable or TimeWeighted variable to observe

maxNumObs

the limit on the number of observations in each replication to store

maxNumReps

the limit on the number of replications

batchSize

the batch size for condensing the data

Constructors

Link copied to clipboard
constructor(responseVariable: ResponseCIfc, maxNumObs: Int = 50000, maxNumReps: Int = 20, batchSize: Double)
constructor(responseVariable: Response, maxNumObs: Int = 50000, maxNumReps: Int = 20, batchSize: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Columns are the replications, rows are the data

Link copied to clipboard
open override val id: Int
Link copied to clipboard
open override var label: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard
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

This results in a comma separated value file that has each row 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. The file is stored in the base directory holding the Welch data files and has the name of the data with _WelchData.csv appended.

Link copied to clipboard

Makes and writes out the welch plot data. Squelches inconvenient IOExceptions The file is stored in the base directory holding the Welch data files and has the name of the data with _WelchPlotData.csv appended.

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String