Internal functions of package distrEx
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
an object of class
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\)
a list as obtained by
arguments passed through to other functions (in particular argument
FALSE(default) the items in
dotswith argument names coinciding with formal argument names used by
GLIntegrate, except for
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
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
.reorganizeDiagnosticListwhich 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
we have two kind of diagnostic list items, ones which are easily grouped (numeric, character, logical) and ones which are calls, lists or functions.
namestoGathertakes 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?
.getIntbounds integration bounds are obtained
lowB <- max(low, q.l(object)(lowTQ), median(object)-IQR.fac*IQR(object))
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
.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
.nmsToGather is a character vector containing the names of items
which are easily regrouped (of first kind in the distinction in the
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.
a named numeric vector with coordinates