fastTrapz | R Documentation |
Compute the area of a multivariate function with (matrix) values Y at the points x.
fastTrapz(x, Y, dim = 1L)
x |
x-coordinates of points on the x-axis (vector) |
Y |
y-coordinates of function values (matrix) |
dim |
an integer giving the subscripts which the function will be applied over. 1 indicates rows, 2 indicates columns |
a vector with one dimension less than Y
x = 1:10
Y = sin(pi/10*matrix(1:10,ncol=10,nrow=10))
fastTrapz(x*pi/10,Y,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.