integrateByTrapez {GroupSeq}R Documentation

Numerical integration

Description

Function does Numerical integration by composite trapezoidal rule.

Usage

integrateByTrapez(functionValues, numberOfIntegrationIntervalls, gridSize)

Arguments

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

Value

area is the sum of the specified function values.

Note

This function is meant to be called in context of using groupseq

Author(s)

Roman Pahl

References

This refers to Fortran Implementation from http://www.biostat.wisc.edu/landemets/

See Also

groupseq

Examples

## 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

[Package GroupSeq version 1.0 Index]