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

Indicates if initial results are printed

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 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