rvmapply is the rv-compatible version of mapply.
It repeats the function FUN for each joint draw of the
random (or constant) arguments, while allowing vectorizing.rvmapply(FUN, …, MoreArgs=NULL, SIMPLIFY = FALSE,
USE.NAMES=TRUE, SAMPLESIZE=NULL)
rvVectorize(FUN, vectorize.args = arg.names, SIMPLIFY = FALSE,
USE.NAMES = TRUE, SAMPLESIZE=NULL)X.FUN `as is' (must not be rv objects unless the function already accepts them)mapply for detailsmapply for detailsFUN, possibly random vectors or array.FUN; a random vector or array if FUN is numeric.rvmapply applies a given function to each
simulation (vector or array) of the given random vectors,
returning a the results as a random vector or array. The dimensions of each joint draw are preserved.
For an example, see solve, that returns
the distribution of the inverse of a random matrix. Usually used in functions that implement an 'rv'-compatible routine. For an example of a function that uses SAMPLESIZE,
abline.vignette("rv").mapply, simapply