fun.grid.scan: function grid-scan

Description Usage Arguments Value

Description

Perform grid-scan of the function for a subset of its parameters. Vectorizing the input function it's possible to compare the input function shape on range of the x (y) axis for a different combination of the parameters.

Usage

1
2
fun.grid.scan(grid.pars, fun = NULL, ..., .progress = "none",
  .parallel = FALSE)

Arguments

grid.pars:

list of list of values to be scanned for the selected parameters

fun:

function to be evaluated. Function should be vectorized in order to evaluate the function on each point of the grid (grid.pars) and for each element of the additional parameter (list ...) passed as a vector.

...:

other function parameters. A parameter can be passed as a vector (fun should be vectorized), in this case an output is produced for each value of the input vactor (check the return section)

progress:

argument of alply function in plyr package

parallel:

run on multiple cores. Check alply function in plyr package.

Value

a data.frame with the input parameters and the corresponding function values. A separate line is produced for each point of the grid.pars and for each value of the parameters passed as vector via the ... list.


diluises/neutRino documentation built on May 15, 2019, 8:33 a.m.