Helps to define a grid for kernel denity or regression estimates (univariate or multivariate).
list of 1-dimensional vectors containing the grid values for each dimension
sort the vectors (can be set to FALSE if vectors are already sorted in ascending order)
This function allows easily to define grids for the "gplm" package. If the data are d-dimensional and the grid vector lengths are n1, ... nd, then the output is a (n1*...*nd) x d matrix with each row corresponding to one d-dimensional data point at which the function estimate is to be calculated.
m x d grid matrix
1 2 3 4 5 6 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.