Skip to contents

Given the extremes of the range and the number of cells, it generates a one-dimensional grid. Cells are counted from minimum to maximum (left to right).

Value

A uni-dimensional grid

Slots

xcell

numeric, number of cells

xmin

numeric, lower limit

xmax

numeric, upper limit

Examples

grid1d <- makeGrid1d(xmin = -50, xmax = 50, xcell = 100)
grid1d
#> class        : Grid1d
#> dimensions   : xcell = 100
#> range        : xmin = -50, xmax = 50

makeGrid1d()
#> class        : Grid1d
#> dimensions   : xcell = 10
#> range        : xmin = -5, xmax = 5