R/int.multi.R

Defines functions int.multi

int.multi <- function(f, nodes, ...) {
    vapply(X         = mapply(FUN      = integrate,
                              lower    = head(nodes, -1L),
                              upper    = tail(nodes, -1L),
                              MoreArgs = list(f = match.fun(f), ...),
                              SIMPLIFY = FALSE),
           FUN       = `[[`,
           FUN.VALUE = numeric(1L),
           index     = 'value')
}

Try the sdprisk package in your browser

Any scripts or data that you put into this service are public.

sdprisk documentation built on May 1, 2019, 7:50 p.m.