center_out_grid: Create multidimensional grid of values

View source: R/gridsearch.R

center_out_gridR Documentation

Create multidimensional grid of values

Description

Apply center_out_uni element-wise to each argument of this function and take all possible combinations of coordinate grid values to create a data frame of grid coordinates

Usage

center_out_grid(center, increment, length)

Arguments

center

Output of get_initial_beta_D; values that act as the center of each axis of the grid (numeric vector of length p_D)

increment

Granularity of the grid in each axis (numeric vector/list of length p_D)

length

Number of grid values to the right and left of each axis (numeric vector/list of length p_D)

Details

If the grid axis corresponding to one of the beta_D's should be be assymetric, let increment and/or length be a list instead of a vector where the corresponding element is itself a vector of length two.

Value

A data frame with each row acting as the coordinates of the grid. If center is a named vector, the columns of the data frame will share the names of the vector. If center is not a named vector, the columns of the data frame are Var1, Var2, etc.


omkarakatta/ivqr documentation built on Aug. 20, 2022, 11:04 p.m.