Area under curve of elements of univariate functional data

Share:

Description

This method computes the (signed) area under the curve of elements of a univariate functional dataset, namely, their integral.

Usage

1

Arguments

fData

the functional dataset containing elements whose areas under the curve have to be computed, in form of fData object.

Value

The function returns a numeric vector containing the values of areas under the curve for all the elements of the functional dataset fData.

See Also

area_ordered, fData

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
P = 1e3
grid = seq( 0, 1, length.out = P )

fD = fData( grid,
            matrix( c( sin( 2 * pi * grid ),
                       cos( 2 * pi * grid ),
                       4 * grid * ( 1 - grid ) ),
                    nrow = 3, ncol = P, byrow = TRUE ) )
plot( fD )

area_under_curve( fD )

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.