rand.seed {rconifers}R Documentation

Initialize or reset the random number generator for the CONIFERS forest growth model

Description

Initialize or reset the random number generator for the CONIFERS forest growth model.

Usage

rand.seed( control )

Arguments

control a list of control options. See 'Details'.

Details

The rand.seed function is used to either initialize or reset the random behavior of the CONIFERS growth model.

The 'control' argument is a list that can supply any of the following components:

use.random.error
Non-negative integer. If 0, no random error will be applied in the height growth function. If 1, then a random error will be added to each plant, in each year to the height growth.
random.seed
Non-negative integer. If 0, the random number generator will be seeded with the time. If >0, the random number generator will be seeded with this value. To use random error for each projection, you only need to initialize the random number generator once. If you wish to repeat the randomness, you need to reseed with the same seed, in the same sequence.

Author(s)

Jeff D. Hamann jeff.hamann@forestinformatics.com,
Martin W. Ritchie mritchie@fs.fed.us

References

Ritchie, M.W. 2008 . User's Guide and Help System for CONIFERS: A Simulator for Young Conifer Plantations Version 4.10. See http://www.fs.fed.us/psw/programs/ecology_of_western_forests/projects/conifers/

See Also

calc.max.sdi, impute, plants, plots project, rand.seed, rconifers, sample.data, set.species.map, set.variant, smc, summary.sample.data, swo, thin

Examples

library( rconifers )

# turn off the random error component
rand.seed( control=list(use.random.error=0 ) )

# reset the random error component and set the seed to 4326
rand.seed( control=list(use.random.error=1,random.seed=4326 ) )


[Package rconifers version 0.0-9 Index]