dist_l: Distance Between Two Length Functions

View source: R/Cvec_choice.R

dist_lR Documentation

Distance Between Two Length Functions

Description

Calculates Δ(l_1, l_2) in the paper (Ver20201104).

Usage

dist_l(l_adpt_vec, l_orc_vec, ratio = TRUE, p = Inf)

Arguments

l_adpt_vec

vector of worst case lengths for the adaptive procedure.

l_orc_vec

vector of worst case lengths for the oracle procedure.

ratio

the ratio measure is used if TRUE; otherwise, the difference measure is used.

p

the order of l_1-norm; the default is Inf.

Examples

l_adpt_vec <- 1:10
l_orc_vec <- (1:10) - 1/2
dist_l(l_adpt_vec, l_orc_vec)

koohyun-kwon/rdadapt documentation built on May 8, 2022, 8:49 p.m.