internals: Internal / Helper functions of package RobAStBase

internals_for_RobAStBaseR Documentation

Internal / Helper functions of package RobAStBase

Description

These functions are used internally by package RobAStBase.

Usage

.eq(x,y = 0*x, tol = 1e-7)
.getDistr(L2Fam)
.evalListRec(list0)
.msapply(X, FUN, ..., simplify = TRUE, USE.NAMES = TRUE)
.fixInLiesInSupport(IC, distr)
.filterEargsWEargList(dots)

Arguments

x

a (numeric) vector

y

a (numeric) vector

tol

numeric — tolerance

L2fam

object of class L2ParamFamily

list0

a list

X

like sapply: a vector (atomic or list) or an expression object. Other objects (including classed objects) will be coerced by base::as.list.

FUN

like sapply: the function to be applied to each element of X. See also sapply

...

like sapply: optional arguments to FUN.

simplify

like sapply: logical or character string; should the result be simplified to a vector, matrix or higher dimensional array if possible? See also sapply

USE.NAMES

like sapply: logical; if TRUE and if X is character, use X as names for the result unless it had names already.

IC

an object of class IC, i.e., it expects a slot Curve like an IC.

distr

a distribution

dots

a list, obtained by list(...).

Details

.eq checks equality of two vectors up to a given precision; .getDistr produces a string with the class of the family and its parameter value; .evalListRec recursively goes through the entries of a list, evaluating each entry. .msapply like base::.sapply but catches NULL/zero-length arguments X. .fixInLiesInSupport inserts a check into the function(s) in the Map slot of the influence curve (IC), whether the arguments at which the IC is to be evaluated lie in the support of the distribution and accordingly either returns the function value of the IC, or 0; the check is done via calling liesInSupport. .filterEargsWEargList calls distrEx::.filterEargs to filter out of dots all relevant arguments for the integrators, integrate, GLIntegrate, and distrExIntegrate; in addition, .filterEargsWEargList checks if an argument "E.argList" is hidden in the dots argument and if so, filters in its entries; in case of collisions with entries filtered from distrEx::.filterEargs, it overwrites existing entries. In the end it returns a list with the filtered items.

Value

.eq

(a vector of) logical.

.getDistr

character.

.evalListRec

a list.

.msapply

as base::sapply.

Author(s)

Peter Ruckdeschel peter.ruckdeschel@uni-oldenburg.de


RobAStBase documentation built on Nov. 16, 2022, 9:08 a.m.