The R Project SVN R

Rev

Rev 59039 | Rev 67599 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61433
Line 57... Line 57...
57
  then distributes streams to the members of a cluster, optionally
57
  then distributes streams to the members of a cluster, optionally
58
  setting the seed of the streams by \code{set.seed(iseed)} (otherwise
58
  setting the seed of the streams by \code{set.seed(iseed)} (otherwise
59
  they are set from the current seed of the master process: after
59
  they are set from the current seed of the master process: after
60
  selecting the L'Ecuyer generator).
60
  selecting the L'Ecuyer generator).
61
#ifdef unix
61
#ifdef unix
62
  
62
 
63
  Calling \code{mc.reset.stream()} after setting the L'Ecuyer random
63
  Calling \code{mc.reset.stream()} after setting the L'Ecuyer random
64
  number generator and seed makes runs from
64
  number generator and seed makes runs from
65
  \code{\link{mcparallel}(mc.set.seed = TRUE)} reproducible.  This is
65
  \code{\link{mcparallel}(mc.set.seed = TRUE)} reproducible.  This is
66
  done internally in \code{\link{mclapply}} and \code{\link{pvec}}.
66
  done internally in \code{\link{mclapply}} and \code{\link{pvec}}.
67
  (Note that it does not set the seed in the master process, so does not
67
  (Note that it does not set the seed in the master process, so does not
68
  affect the fallback-to-serial versions of these functions.)
68
  affect the fallback-to-serial versions of these functions.)
69
#endif  
69
#endif
70
}
70
}
71
\value{
71
\value{
72
  For \code{nextRNGStream} and \code{nextRNGSubStream},
72
  For \code{nextRNGStream} and \code{nextRNGSubStream},
73
  a value which can be assigned to \code{.Random.seed}.
73
  a value which can be assigned to \code{.Random.seed}.
74
}
74
}
75
\references{
75
\references{
76
  L'Ecuyer, P. (1999) Good parameters and implementations for combined
76
  L'Ecuyer, P. (1999) Good parameters and implementations for combined
77
  multiple recursive random number generators.  \emph{Operations
77
  multiple recursive random number generators.  \emph{Operations
78
  Research} \bold{47}, 159--164.
78
  Research} \bold{47}, 159--164.
79
  
79
 
80
  L'Ecuyer, P., Simard, R.,  Chen, E. J. and Kelton, W. D. (2002)
80
  L'Ecuyer, P., Simard, R.,  Chen, E. J. and Kelton, W. D. (2002)
81
  An object-oriented random-number package with many long streams
81
  An object-oriented random-number package with many long streams
82
  and substreams.  \emph{Operations Research} \bold{50} 1073--5.
82
  and substreams.  \emph{Operations Research} \bold{50} 1073--5.
83
}
83
}
84
\author{
84
\author{