Learn R Programming

sampSurf (version 0.7-6)

mcsContainer: Generate Objects of Class "'>mcsContainer"

Description

The methods for this function will allow the creation of valid "mcsContainer" class objects. Please note that it is preferable to use the constructors named after the Monte Carlo method being used, rather than calling this function directly. For example, to use importance sampling, call the importanceSampling constructor with a container of "'>Stem" subclass objects. Please see the vignette below for detailed examples. See also mcsContainer-methods for method details.

Usage

mcsContainer(object, ...)

Arguments

object

The signature object for the generic.

Just gobbled presently.

Value

A valid object of class "'>mcsContainer."

Details

The vignette below gives examples on creating "mcsContainer" objects for each of the Monte Carlo subsampling methods available in sampSurf. The respective methods are simpler to use and more intuitive, and their use will ensure that a valid container object is returned.

References

%

Gove, J. H. 2013. Monte Carlo sampling methods in sampSurf. Package vignette.

See Also

Please see the direct constructors: crudeMonteCarlo, importanceSampling and controlVariate for methods to create collections of objects under these subsampling schemes. For antithetic versions of these methods, see the '>antitheticContainer class.

Examples

Run this code
# NOT RUN {
sTrees = standingTrees(5, startSeed = 12)
sTrees.cmc = crudeMonteCarlo(sTrees, n.s = 10)
sTrees.cmc
print(sTrees.cmc@stats, digits = 4)
# }

Run the code above in your browser using DataLab