MHRD {roahd} | R Documentation |
Modified Half-Region Depth for univariate functional data
Description
This function computes the Modified Half-Region Depth (MHRD) of elements of a univariate functional dataset.
Usage
MHRD(Data)
## S3 method for class 'fData'
MHRD(Data)
## Default S3 method:
MHRD(Data)
Arguments
Data |
either an |
Details
Given a univariate functional dataset, ,
defined over a compact interval
, this function computes the MHRD
of its elements, i.e.:
where indicates the Modified Epigraph Index (MEI) of
with respect to the dataset, and
indicates the
Modified Hypograph Index of
with respect to the dataset.
Value
The function returns a vector containing the values of MHRD for each
element of the functional dataset provided in Data
.
References
Lopez-Pintado, S. and Romo, J. (2012). A half-region depth for functional data, Computational Statistics and Data Analysis, 55, 1679-1695.
Arribas-Gil, A., and Romo, J. (2014). Shape outlier detection and visualization for functional data: the outliergram, Biostatistics, 15(4), 603-619.
See Also
Examples
N = 20
P = 1e2
grid = seq( 0, 1, length.out = P )
C = exp_cov_function( grid, alpha = 0.2, beta = 0.3 )
Data = generate_gauss_fdata( N,
centerline = sin( 2 * pi * grid ),
C )
fD = fData( grid, Data )
MHRD( fD )
MHRD( Data )