View source: R/getMidPointNodes.R
getMidPointNodes | R Documentation |
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)
lowerCoords, upperCoords |
Matrices of lower and upper x- and y-coordinates of a set of windows. One row for each window. |
numSubintervals |
Number of subintervals each dimension of a window is divided into. |
A list of midpoint nodes and weights.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.