This class wraps around a user-provided function and provides an attribute args so that simuPOP knows which parameters to send to the function. This is only needed if the function can not be defined with allowed parameters.
This random number generator class wraps around a number of random number generators from GNU Scientific Library. You can obtain and change the RNG used by the current simuPOP module through the getRNG() function, or create a separate random number generator and use it in your script.
A random number generator that returns 0, 1, ..., k-1 with probabilites that are proportional to their weights. For example, a weighted sampler with weights 4, 3, 2 and 1 will return numbers 0, 1, 2 and 3 with probabilities 0.4, 0.3, 0.2 and 0.1, respectively. If an additional parameter N is specified, the weighted sampler will return exact proportions of numbers if N numbers are returned. The version without additional parameter is similar to the sample(prob, replace=FALSE) function of the R statistical package.