NMOF-internal: Internal NMOF functions

Description Usage Details Author(s)

Description

Several internal functions, not exported from the NMOF name space.

Usage

1
2
3
4
5
6
7
8
9
makeInteger(x, label, min = 1L)
anyNA(x)
checkList(passedList, defaultList, label = "'algo'")
mRU(m,n)
mRN(m,n)
mcList(mc.control)
repair1c(x, up, lo)
Chapters
due(D, tauD, tau, q)

Details

makeInteger coerces the scalar x to integer. If the result is NA or smaller than min, an error is issued.

anyNA gives TRUE if any(is.na(x)), else FALSE. If x is a function or NULL, it also gives FALSE.

checkList will issue an error if passedList contains any NA elements. It will give a warning if any elements in passedList are unnamed, or if an element in names(passedList) is not found in names(defaultList).

mRU and mRN create matrices (of size m times n) of uniform/Gaussian variates.

mcList takes a list of named elements and ‘merges’ them with the default settings of mclapply from package parallel.

repair1c is described in the vignette on ‘Repairing Solutions’.

Chapters is a vector of length 15, giving the chapter names as printed in the book. (Can be accessed with showChapterNames.)

due (dividends until expiry) returns a list with named components tauD and D: all dividends for which time-to-payment is greater than zero, but less than or equal to time-to-expiry.

Author(s)

Enrico Schumann


NMOF documentation built on May 2, 2019, 6:39 p.m.