stateVariableTrace

fun ReportBuilder.stateVariableTrace(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 a time-weighted (ksl.modeling.variable.TWResponse) ResponseTrace.

Each replication section contains:

  1. A StateVariablePlot (step function with observation markers) covering the time window [startTime, endTime].

  2. A Property/Value table of the ksl.utilities.statistic.TimeWeightedStatistic computed from the windowed trace data: count, time-weighted average, min, max, sum of weights (= total observation time), weighted sum, unweighted sum, and missing count.

Parameters

trace

the ResponseTrace to report; must be a TWResponse 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