hzar.multiFitRequest: Collect hzar.fitRequest objects to simplify automation

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/37-multiFit.R

Description

This method manipulates a list of hzar.fitRequest objects to ensure each object has an independent seed. If requested, it can replicate each hzar.fitRequest to create independent chains.

Usage

1
2
3
hzar.multiFitRequest(fitL, each = 1, baseSeed = c(1234, 2345, 3456,
4567, 5678, 6789, 7890, 8901, 9012, 123), rotateSeed = TRUE, baseChannel
= 50, adjChannel = 50, skip = 0) 

Arguments

fitL

A single hzar.fitRequest objects or a list of hzar.fitRequest objects

each

How many times to replicate each hzar.fitRequest object.

baseSeed

The pool of values from which to draw seeds.

If NULL, do not change the seed.

If rotateSeed is TRUE this pool is automatically reduced to unique values.

rotateSeed

If TRUE, a unique set of six values is drawn from baseSeed. If FALSE, the first 6 values of baseSeed are used. The method rep is used to expand baseSeed to 6 values if needed.

baseChannel

The initial stream channel to set for each element of fitL. The method rep is used to expand baseChannel to the length of fitL if needed. If NULL, use the original stream channel from each element of fitL.

adjChannel

Amount to increment the stream channel

skip

Assume skip sets of unique values have already been drawn from baseSeed.

Details

This method assumes that the user wishes to generate independent chains unless instructed other wise.

By default, this method will use a unique seed for each element of fitL and increment the stream channel for each replication of each element of fitL.

If rotateSeed is TRUE, baseSeed is numeric, and adjChannel is not numeric, then this method will use a unique seed for every element of the result.

If rotateSeed is FALSE, baseChannel is a numeric of length 1, adjChannel is numeric, and each is greater than one, then this method will increment the stream channel for every element of the result.

Value

Returns a list of hzar.fitRequest object, suitable for hzar.doFit.multi.

Author(s)

Graham Derryberry asterion@alum.mit.edu

See Also

hzar.fitRequest hzar.doFit.multi

Examples

1
2
3
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

hzar documentation built on May 2, 2019, 7 a.m.