Create a univariate Gauss-Hermite quadrature rule.
scalar integer between 1 and 25 - the order, or number of nodes and weights, in the rule. When the function being multiplied by the standard normal density is a polynomial of order 2k-1 the rule of order k integrates the product exactly.
logical scalar - should the result be
returned as a matrix. If
This version of Gauss-Hermite quadrature provides the node positions and weights for a scalar integral of a function multiplied by the standard normal density.
Originally based on package SparseGrid's hidden
a matrix (or data frame, is
asMatrix is false) with
rows and three columns which are
z the node positions,
the weights and
ldnorm, the logarithm of the normal density
evaluated at the nodes.
a different interface is available via
1 2 3 4
Loading required package: Matrix z w ldnorm 1 -2.856970e+00 0.01125741 -5.0000774 2 -1.355626e+00 0.22207592 -1.8377997 3 3.865099e-17 0.53333333 -0.9189385 4 1.355626e+00 0.22207592 -1.8377997 5 2.856970e+00 0.01125741 -5.0000774  1 3 15 105 825
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.