powered by
Generate midpoint nodes and weights for integrating a function numerically over a set of windows. For each window, generate a set of equally spaced nodes and weights.
getMidPointNodes(lowerCoords, upperCoords, numSubintervals = 10)
A list of midpoint nodes and weights.
Matrices of lower and upper x- and y-coordinates of a set of windows. One row for each window.
Number of subintervals each dimension of a window is divided into.
Wei Zhang
lowerCoords <- matrix(c(0, 0, 1, 0, 0, 1, 1, 1), nrow = 4, byrow = TRUE) upperCoords <- matrix(c(1, 1, 2, 1, 1, 2, 2, 2), nrow = 4, byrow = TRUE) getMidPointNodes(lowerCoords, upperCoords, 5)
Run the code above in your browser using DataLab