make_grid: Make the deep MRA grid

View source: R/eval_basis.R

make_gridR Documentation

Make the deep MRA grid

Description

Make the deep MRA grid

Usage

make_grid(
  locs,
  min_x = -6,
  min_y = -6,
  max_x = 6,
  max_y = 6,
  M = 4,
  n_coarse_grid = 10,
  n_padding = 5L,
  n_neighbors = 68,
  max_points = NULL,
  basis_type = "wendland"
)

Arguments

locs

An N x 2 matrix of spatial locations

min_x

The minimum value of the MRA grid in the x axis

min_y

The minimum value of the MRA grid in the y axis

max_x

The maximum value of the MRA grid in the x axis

max_y

The maximum value of the MRA grid in the y axis

M

The number of resolutions.

n_coarse_grid

The number of basis functions in one direction (e.g. n_coarse_grid = 10 results in a 10x10 course grid which is further extended by the number of additional padding basis functions given by n_padding.

n_padding

The number of additional boundary points to add on each boundary. For example, n_padding = 5 will add 5 boundary knots to the both the left and right side of the grid).

n_neighbors

The expected number of neighbors for each interior basis function. This determines the basis radius parameter.

max_points

The maximum number of points in the

basis_type

The basis type. Currently only the "wendland" basis is supported

use_spam

Whether to use spam or Matrix for sparse matrix

Value

A grid object with locs_grid for the MRA grid and radius for the thresholded distance radius


jtipton25/sgMRA documentation built on Feb. 9, 2023, 4:53 a.m.