View source: R/construct_grid.R
construct_grid | R Documentation |
Computes the location-bandwidth grid for the multiscale test.
construct_grid(t, u_grid = NULL, h_grid = NULL, deletions = NULL)
t |
Sample size. |
u_grid |
Vector of location points in the unit interval
|
h_grid |
Vector of bandwidths, each bandwidth is supposed to lie
in |
deletions |
Logical vector of the length len(u.grid) * len(h.grid).
Each element is either TRUE, which means that
the corresponding location-bandwidth point |
A list with the following elements:
gset |
Matrix of location-bandwidth points |
bws |
Vector of bandwidths (after deletions). |
lens |
Vector of length = length(bws), lens[i] gives the number of locations in the grid for the i-th bandwidth level. |
gtype |
Type of grid that is used, either 'default' or 'non-default'. |
gset_full |
Matrix of all location-bandwidth pairs |
pos_full |
Logical vector indicating which points |
construct_grid(100)
construct_grid(100, u_grid = seq(from = 0.05, to = 1, by = 0.05),
h_grid = c(0.1, 0.2, 0.3, 0.4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.