This idiom is really useful to carry out simulations, which are essentially repeated evaluations of a function over a grid of parameter values.
1 2 |
.f |
function to be evaluated |
... |
Arguments passed to f |
.reps |
the number of times the function should be evaluated |
.verbose |
If |
.rep.cores |
Apply repeates in parallel using mclapply |
.eval |
If |
.args |
optional list of (named) arguments to .f
If |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.