method: character. default is "legendre"; also possible are "laguerre" and "hermite"
nodes: the nodes (a numeric vector)
weights: the weights (a numeric vector)
oldmin: the minimum of the interval (typically as tabulated)
oldmax: the maximum of the interval (typically as tabulated)
newmin: the desired minimum of the interval
newmax: the desired maximum of the interval
Details
xwGauss computes nodes and weights for integration for the interval -1 to 1. It uses the method of Golub and Welsch (1969).
changeInterval is a utility that transforms nodes and weights to an arbitrary interval.
Returns
a list with two elements - weights: a numeric vector
nodes: a numeric vector
References
Gilli, M., Maringer, D. and Schumann, E. (2019) Numerical Methods and Optimization in Finance. 2nd edition. Elsevier. tools:::Rd_expr_doi("10.1016/C2017-0-01621-X")
Golub, G.H. and Welsch, J.H. (1969). Calculation of Gauss Quadrature Rules. Mathematics of Computation, 23 (106), pp. 221--230+s1--s10.