Learn R Programming

sampSurf (version 0.7-6)

antitheticSampling: Generate Objects of Class "'>antitheticSampling"

Description

This generic has two methods, they are used to apply antithetic sampling to an individual "MonteCarloSampling" subclass object, or collections of "MonteCarloSampling" objects. See antitheticSampling-methods for details.

Usage

antitheticSampling(object, ...)

Arguments

object

An object that is a subclass of "'>MonteCarloSampling".

Just gobbled at present.

Value

A valid object of class "'>antitheticSampling" or "'>antitheticContainer", depending on which method was used.

Details

This method samples points on the bole antithetic to those found in the object argument. Note that one can not pass arguments on to the proxy. All of the information from the object passed is used to determine the proxy and any specific arguments used by the proxy in the creation of that object. The constructor functions do not allow any of this to be changed by the user.

References

%

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

See Also

See antitheticSampling-methods for methods. Generics for Monte Carlo methods for the object are: crudeMonteCarlo importanceSampling, controlVariate.

Examples

Run this code
# NOT RUN {
#
# estimate volume between 10 and 15 m, using 5 random heights...
#
sTree = standingTree(dbh = 40, topDiam = 0, height = 20, solidType = 2.8)
sTree.cmc = crudeMonteCarlo(sTree, n.s = 5, segBnds = c(10,15), startSeed = 114)
sTree.anti = antitheticSampling(sTree.cmc)
sTree.anti
# }

Run the code above in your browser using DataLab