tests/ghypInversionTests.R

ghypInversionTestpq <- function(ps, intTol = .Machine$double.eps^0.25,
                                uniTol = .Machine$double.eps^0.25,
                                method = "spline", ...)
{
    qpps <- qghyp(pghyp(ps, intTol = intTol, ...), uniTol = uniTol,
                 method = method, ...)
    diffs <- qpps - ps
    result <- list(qpps = qpps, ps = ps, diffs = diffs)

    return(result)
}

ghypInversionTestqp <- function(qs, intTol = .Machine$double.eps^0.25,
                                uniTol = .Machine$double.eps^0.25,
                                method = "spline", ...)
{
    pqqs <- pghyp(qghyp(qs, uniTol = uniTol, method = method, ...),
                  intTol = intTol, ...)
    diffs <- pqqs - qs
    result <- list(pqqs = pqqs, qs = qs, diffs = diffs)

    return(result)
}

Try the GeneralizedHyperbolic package in your browser

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

GeneralizedHyperbolic documentation built on Nov. 26, 2023, 5:07 p.m.