powered by
Computes the integral of fdataobj$data with respect to fdataobj$argvals using simpson or trapezoid rule integration.
fdataobj$data
fdataobj$argvals
int.simpson(fdataobj, method = NULL)int.simpson2(x, y, equi = TRUE, method = NULL)
int.simpson2(x, y, equi = TRUE, method = NULL)
fdata objtect.
Method for numerical integration, see details.
Sorted vector of x-axis values: argvals.
argvals
Vector of y-axis values.
=TRUE, the observed points on each curve are equally spaced (by default).
Manuel Febrero-Bande, Manuel Oviedo de la Fuente manuel.oviedo@udc.es
Posible values for method are:
method
"TRAPZ": Trapezoid rule integration.
"TRAPZ"
"CSR": Composite Simpson's rule integration.
"CSR"
"ESR": Extended Simpson's rule integration.
"ESR"
If method=NULL (default), the value of par.fda.usc$int.method is used.
method=NULL
par.fda.usc$int.method
See also integrate.
integrate
if (FALSE) { x<-seq(0,2*pi,length=1001) fx<-fdata(sin(x)/sqrt(pi),x) fx0<-fdata(rep(0,length(x)),x) int.simpson(fx0) int.simpson(fx) }
Run the code above in your browser using DataLab