mc.control: Sets or Gets the Default Number of Simulations.

mc.controlR Documentation

Sets or Gets the Default Number of Simulations.

Description

Sets or retrieves the default number of simulations.

Usage

ndvar(n)
ndunc(n)

Arguments

n

Number of simulations.

Details

⁠ndvar()⁠’ gets and ‘⁠ndvar(n)⁠’ sets the default number of simulation in the 1D simulations or the number of simulation in the variability dimension in the 2D simulations.

⁠ndunc()⁠’ gets and ‘⁠ndunc(n)⁠’ sets the number of simulations in the uncertainty dimension in the 2D simulations.

⁠n⁠’ is rounded to its ceiling value.

The default values when loaded are 1001 for ‘⁠ndvar⁠’ and 101 for ‘⁠ndunc⁠’.

Value

The current value, AFTER modification if ‘⁠n⁠’ is present (!= ‘⁠options⁠’).

Examples

(oldvar <- ndvar())
(oldunc <- ndunc())
mcstoc(runif, type="VU")
ndvar(12)
ndunc(21)
mcstoc(runif, type="VU")
ndvar(oldvar)
ndunc(oldunc)


mc2d documentation built on June 22, 2024, 10:54 a.m.