observationTrace

fun ReportBuilder.observationTrace(trace: ResponseTrace, repNums: List<Int> = trace.replicationNumbers.take(1), startTime: Double = 0.0, endTime: Double = Double.MAX_VALUE)(source)

Appends one section per replication in repNums for an observation-based (ksl.modeling.variable.Response) ResponseTrace.

Each replication section contains:

  1. A ScatterPlot with simulation time on the x-axis and observed value on the y-axis, covering the time window [startTime, endTime].

  2. A Property/Value table of descriptive statistics: count, average, min, and max.

Half-width, confidence interval, and standard deviation are excluded. Within-replication observations are autocorrelated; the standard variance estimator is biased under autocorrelation and the derived inferential quantities would be misleading.

Parameters

trace

the ResponseTrace to report; must be an observation-based trace

repNums

replication numbers to include; defaults to the first recorded replication

startTime

lower bound of the time window; defaults to 0.0

endTime

upper bound of the time window; defaults to Double.MAX_VALUE