regular.grid: generate a regular grid on a domain

View source: R/utility.R

regular.gridR Documentation

generate a regular grid on a domain

Description

generate a regular grid on a domain

Usage

regular.grid(m = 100, domain = c(0, 1), h = 1/(2 * m))

Arguments

m

the number of points

domain

the domain

h

the margin of the first and last points to the boundaries of the domain

Value

a vector representing the grid

Examples

grid <- regular.grid()
grid <- regular.grid(50)

ZhuolinSong/wpe documentation built on Oct. 31, 2022, 7:38 p.m.