MCExperimentIfc

Provides an interface for algorithms that perform Monte-Carlo experiments See the abstract base class MCExperiment for further information.

Inheritors

Properties

Link copied to clipboard
abstract var confidenceLevel: Double

the desired confidence level

Link copied to clipboard

the desired half-width bound for the experiment

Link copied to clipboard
abstract var initialSampleSize: Int

the initial sample size for pilot simulation

Link copied to clipboard
abstract var maxSampleSize: Long

the maximum number of samples permitted

Link copied to clipboard
abstract var microRepSampleSize: Int

the number of micro replications to perform

Link copied to clipboard

Indicates if initial results are printed

Link copied to clipboard

determines whether the reset stream option is on (true) or off (false)

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun estimateSampleSize(): Double
Link copied to clipboard
abstract fun estimateSampleSizeForRelativeError(relativeError: Double): Double

See page 513 of Law & Kelton

Link copied to clipboard
abstract fun replication(j: Int): Double
Link copied to clipboard
abstract fun runInitialSample(printResultsOption: Boolean = printInitialOption): Double

The purpose of the initial sample is to estimate the variability and determine an approximate number of additional samples needed to meet the desired absolute error. This method must ensure or assumes that no previous sampling has occurred. All statistical accumulators should be reset when this is executed.

Link copied to clipboard
abstract fun runSimulation(): Double
Link copied to clipboard
abstract fun statistics(): Statistic