Learn R Programming

sampSurf (version 0.7-6)

crudeMonteCarlo: Generate Objects of Class "'>crudeMonteCarlo"

Description

This generic has two methods, they are used to apply crude Monte Carlo subsampling to an individual "Stem" object, or collections of "Stem" objects. See crudeMonteCarlo-methods for details.

Usage

crudeMonteCarlo(object, ...)

Arguments

object

This is the signature argument, see the crudeMonteCarlo-methods for possible values.

Arguments that can be passed along to the proxy function.

Value

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

Details

Crude Monte Carlo is arguably the simplest method for estimating a volume integral within a segment of a stem bole. The equations used in estimation are given in the reference below, which also points to more detailed references. Essentially, the crude Monte Carlo method extracts one or more heights uniformly at random, at which cross-sectional areas are determined. From these, a volume estimate can be made for each subsampled height.

References

%

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

See Also

See crudeMonteCarlo-methods for methods. Other similar generics for Monte Carlo methods include: importanceSampling, controlVariate, antitheticSampling.

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.cmc
# }

Run the code above in your browser using DataLab