These functions are used internally by package distrEx.
.getIntbounds(object, low, upp, lowTQ, uppTQ, IQR.fac, ...)
.filterFunargs(dots, fun, neg = FALSE)
.filterEargs(dots, neg = FALSE)
.reorganizeDiagnosticList(liste, .depth=1, names0, prenames = "",
nmstoGather="", nmstoGatherNS="", withprint=TRUE,
.GatherList = NULL, .GatherListNS = NULL)
.showallNamesDiagnosticList(liste, .depth=1)
.nmsToGather
a named numeric vector with coordinates low
and upp
.
an object of class "AbscontDistribution"
given lower integration bound
given lower integration bound
lower quantile for quantile based integration range.
upper quantile for quantile based integration range.
factor for scale based integration range (i.e.;
median of the distribution \(\pm\)IQR.fac
\(\times\)IQR).
a list as obtained by list(...)
.
arguments passed through to other functions (in particular argument
cond
in .getIntbounds
)
logical: if FALSE
(default) the items in dots
with argument
names coinciding with formal argument names used by distrExIntegrate
,
integrate
, GLIntegrate
, except for ...
, f
,
distr
, are returned; otherwise the logical complement, i.e., those
items not coinciding with the mentioned names are returned.
a function the formals of which are to be filtered from argument list
dots
.
a list (usually of S3 class "DiagnosticClass"
)
as filled from various functions with diagnostic information; it usually
has a tree structure and is the to be reorganized; this is done in
function .reorganizeDiagnosticList
which groups items of the
same name in several sublists.
an argument to be used internally to determine the depth of the recursion when moving through the tree.
a character vector with the names of the items to be regrouped in new sublists.
to determine the position in the original tree, the names
of parent nodes are concatenated, separated by "$" and passed on
to children nodes by argument prenames
.
we have two kind of diagnostic list items, ones which
are easily grouped (numeric, character, logical) and ones which are calls,
lists or functions. nmstoGather
takes the names of items
to be regrouped which are of the first kind.
the names of items to be regrouped which are of the second kind (NS standing for "non-shown").
the list of new regrouped sublists (of first kind). This argument is not filled by the user but rather passed on within the recursion when moving through the tree.
the list of new regrouped sublists (of second kind). This argument is not filled by the user but rather passed on within the recursion when moving through the tree.
logical; should intermediate information when moving through the tree be printed?
Peter Ruckdeschel peter.ruckdeschel@uni-oldenburg.de,
.getIntbounds
integration bounds are obtained
as lowB <- max(low, q.l(object)(lowTQ), median(object)-IQR.fac*IQR(object))
and uppB <- min(upp, q.l(object)(1-uppTQ), median(object)+IQR.fac*IQR(object))
.filterEargs
filters out arguments that are used in numerical integration
and returns only these (or returns all items except for them, if argument
neg
is TRUE
).
.filterFunargs
filters out arguments the names of which are within the
names of the formal arguments of fun
(or returns all items of
dots
except for the matched ones, if argument
neg
is TRUE
).
.nmsToGather
is a character vector containing the names of items
which are easily regrouped (of first kind in the distinction in the
arguments namestoGather
and namestoGatherNS
); the distinction
in these two categories is based on this vector; those items not in this
vector are put into the second kind.
.showallNamesDiagnosticList
runs through all the nodes in the list and
collects all names and then returns the list of all (unique) names found.
.reorganizeDiagnosticList
reorganizes the nodes of the nodes in the list,
regrouping them into groups with the names.
AbscontDistribution
,
distrExIntegrate