Learn R Programming

refund (version 0.1-37)

quadWeights: Compute quadrature weights

Description

Utility function for numerical integration.

Usage

quadWeights(argvals, method = "trapezoidal")

Value

a vector of quadrature weights for the points supplied in argvals.

Arguments

argvals

function arguments.

method

quadrature method. Can be either trapedoidal or midpoint.

Author

Clara Happ, with modifications by Philip Reiss