approximateBatchInterval

fun approximateBatchInterval(repLength: Double, warmUp: Double): Double

This method returns a suggested batching interval based on the length of the replication and warm up length for TimeWeighted variables.

This value is used in the calculation of the approximate batching interval if batching is turned on and there is a finite run length.

If the run length is finite, then the batch interval is approximated as follows:

t = length of replication - length of warm up n = getTimeWeightedStartingNumberOfBatches()

batching interval = t/n

DEFAULT_NUM_TW_BATCHES = 512.0

Return

the recommended batching interval

Parameters

repLength

the length of the replication

warmUp

the warm-up period for the replication


This method returns a suggested batching interval based on the length of the run, the warm-up period, and default number of batches.

Return

a double representing an approximate batch interval