Learn R Programming

GroupSeq (version 1.0)

integrateByTrapez: 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

  • areais the sum of the specified function values.

References

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

See Also

groupseq

Examples

Run this code
## 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

Run the code above in your browser using DataLab