center_out_uni: Create a univariate grid of values from the center out

View source: R/gridsearch.R

center_out_uniR Documentation

Create a univariate grid of values from the center out

Description

Given some center, extend in the positive and negative directions to create a grid of values

Usage

center_out_uni(center, increment, length)

Arguments

center

Output of get_initial_beta_D or a number to center the grid (numeric)

increment

Granularity of the grid to the left and to the right of center (numeric scalar or vector of length two)

length

Number of grid values to the left and right of the grid (numeric scalar or vector of length two)

Details

If increment or length is a vector of two elements, the first element corresponds to the left of center and the second element corresponds to the right of center. If one element is given for increment or length, then this element applies to both the left and the right of center.

Value

A vector of grid values


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