Ele_Norm: Distance measures

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/Ele_Norm.R

Description

This function calculates distances for given elements to restrict the parameters for depth estimation to smaller regions with respect to the selected norm. It is an auxiliary function for the proposed depth methods.

Usage

1
Ele_Norm(Cvec, center, pv, nortype, wgt)

Arguments

Cvec

A point for which the distance to a center point has to be calculated.

center

A center point from which the distance has to be calculated.

pv

A value for the power within the norm definition, e.g. for ntype = 1, pv = 2 the L2-Norm is calculated.

nortype

A value for the specification of the norm, ntype = 1 gives a norm depending on the absolute value and a power pv, while ntype = 2 gives a weighted norm with power pv.

wgt

A vector with two elements defining the weights for the components of the vectors for which the norm is calculated. This allows asymmetric norms to reflect the data strucure.

Value

The function returns a real number measuring the distance between the vector Cvec and center.

Note

The function is an auxilary function to estimate parameters of (non)linear AR processes by depth basesd methods.

Author(s)

Kustosz, Christoph

References

Kustosz, C. (2016). Depth based estimators and tests for autoregressive processes with application. Ph. D. thesis. TU Dortmund.

See Also

est_lin2, est_nlin1

Examples

1
2
3
4
5
6
x1 <- seq(-2, 2, 0.05)
x2 <- seq(-2, 2, 0.05)
g <- expand.grid(x1, x2)
d <- apply(g, 1, Ele_Norm, center = c(0, 0), nortype = 2, wgt = c(1, 1), pv = 2)
plot(g)
points(g[, 1][d < 1], g[, 2][d < 1], col = 2)

ChrisKust/rexpar documentation built on May 6, 2019, 11:48 a.m.