integrateByTrapez {GroupSeq} | R Documentation |
Function does Numerical integration by composite trapezoidal rule.
integrateByTrapez(functionValues, numberOfIntegrationIntervalls, gridSize)
functionValues |
is a vector of function values. |
numberOfIntegrationIntervalls |
is the number of trapezoids with base gridSize respective the number of intervals for this numerical integration. |
gridSize |
is the grid size |
area |
is the sum of the specified function values. |
This function is meant to be called in context of using groupseq
Roman Pahl
This refers to Fortran Implementation from http://www.biostat.wisc.edu/landemets/
## function depends heavily on calculations before (e.g.the 'grid'), ## so you donīt want to use it by manual and therefore an example is not useful