Skip to contents

Generates a grid of parameter values to evaluate over.

Usage

generateReval(M, rval = NULL, nr = NULL)

Arguments

M

an integer.

rval

a numeric vector with parameter values for the grid. If not provided, it will be generated by dividing [0, 1] into nr equal intervals.

nr

an integer. Ignored if rval is provided.

Value

A a matrix with M rows and nr + 1 or length(rval) columns.

Examples

reval <- generateReval(M = 2, nr = 1e2)
dim(reval)
#> [1]    2 5151