RDocumentation
Moon
Learn R
Search all packages and functions
lme4 (version 1.1-6)
GQdk: Sparse Gaussian Quadrature grid
Description
Generate the sparse multidimensional Gaussian quadrature grids
Usage
GQdk(d = 1L, k = 1L)
Arguments
d
integer scalar - the dimension of the function to be integrated with respect to the standard
d
-dimensional Gaussian density
k
integer scalar - the order of the grid. A grid of order
k
provides an exact result for a polynomial of total order of
2k - 1
or less multiplied by the
Value
a matrix with
d + 1
columns. The first column is the weights and the remaining
d
columns are the node coordinates.
Examples
Run this code
GQdk(
2
,
5
)
Run the code above in your browser using
DataLab