update

fun update(currentTime: Instant)

Updates the batch means with a new event at the given simulation time.

Processes any elapsed time, closing batches as needed based on the batch interval. Batch intervals double when batches collapse to maintain a target number of batches.

Parameters

currentTime

the simulation time at which this event occurred

Throws

if time moves backwards