| mc.control | R Documentation |
Sets or retrieves the default number of simulations in the variability and uncertainty dimensions.
ndvar(n)
ndunc(n)
n |
number of simulations. |
‘ndvar()’ gets and ‘ndvar(n)’ sets the default number of simulations in the 1D simulations or the number of simulations in the variability dimension in 2D simulations.
‘ndunc()’ gets and ‘ndunc(n)’ sets the number of simulations in the uncertainty dimension in 2D simulations.
‘n’ is rounded to its ceiling value.
The default values when loaded are 1001 for ‘ndvar’ and 101 for ‘ndunc’.
The current value, AFTER modification if ‘n’ is present (unlike options).
mcstoc, mcdata
(oldvar <- ndvar())
(oldunc <- ndunc())
mcstoc(runif, type = "VU")
ndvar(12)
ndunc(21)
mcstoc(runif, type = "VU")
ndvar(oldvar)
ndunc(oldunc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.