| rnorm {FLCore} | R Documentation |
Generates random numbers following a normal distribution. mean and
sd can be specified as objects of class FLQuant-class, of the same
dimensions, but any of the two could be given as a numeric. In this case the value will
be reused accordingly.
rnorm(n, mean, sd)
n is the number of iterations of the return object. mean and sd are FLQuant objects and must be of equal size. When both sd and mean are specified the returned object is an FLQuant object with n iterations, filled with randomly generated numbers. When only 1 of mean or sd is supplied the return object is a vector of length n.The FLR Team
rnorm, FLQuant-class, FLQuantPoint-class
data(ple4) rnorm(10,mean=harvest(ple4)[,"2001"], sd=harvest(ple4)[,"2001"])