MeasurementSummary

data class MeasurementSummary(val id: Int, val name: String, val startTime: Long, val stopTime: Long, val startEventIndex: Int, val eventCount: Int, val runs: List<RunSummary>, val statistics: List<QuantityStatistics> = listOf(), val errorCount: Long = runs.sumOf(RunSummary::errorCount))

Measurement represents a single test case that can be run multiple times for further statistical analysis. The runs are expected to behave in a more or less identical way. Statistical methods can be used for determining reasonable range of values for power, duration etc.

Each measurement consists of

  • id & name

  • start and stop timestamps

  • start idx for events + event count

  • summary of runs

  • summary of read errors

Constructors

Link copied to clipboard
constructor(id: Int, name: String, startTime: Long, stopTime: Long, startEventIndex: Int, eventCount: Int, runs: List<RunSummary>, statistics: List<QuantityStatistics> = listOf(), errorCount: Long = runs.sumOf(RunSummary::errorCount))

Properties

Link copied to clipboard

Has read errors

Link copied to clipboard

Number of events in this measurement

Link copied to clipboard
val id: Int

ID of the measurement

Link copied to clipboard

Name of the measurement

Link copied to clipboard

Runs associated with the measurement

Link copied to clipboard

index of the first associated event

Link copied to clipboard

The start timestamp, @see System.currentTimeMillis()

Link copied to clipboard

Collection of statistics for the measurement

Link copied to clipboard

The stop timestamp, @see System.currentTimeMillis()

Functions

Link copied to clipboard
fun MeasurementSummary.calculateGenericStatistics(plans: List<GenericStatisticsPlan> = GenericStatisticsPlan.generic(), summarizeRun0: Boolean, includedRuns: List<RunSummary> = includedRuns(summarizeRun0)): List<QuantityStatistics>

Generic stats for a measurement. These are calculated quickly from the data already in memory without the need to go through the events.

Link copied to clipboard
fun includedRuns(summarizeRun0: Boolean): List<RunSummary>
Link copied to clipboard
open override fun toString(): String